[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH for-5.0?] target/xtensa: Statically allocate xtensa_insnbufs
From: |
Max Filippov |
Subject: |
Re: [PATCH for-5.0?] target/xtensa: Statically allocate xtensa_insnbufs |
Date: |
Mon, 6 Apr 2020 21:08:29 -0700 |
On Mon, Apr 6, 2020 at 9:04 PM Max Filippov <address@hidden> wrote:
> diff --git a/target/xtensa/helper.c b/target/xtensa/helper.c
> index 376a61f3397c..278415ae0e06 100644
> --- a/target/xtensa/helper.c
> +++ b/target/xtensa/helper.c
> @@ -96,6 +96,7 @@ static void init_libisa(XtensaConfig *config)
>
> config->isa = xtensa_isa_init(config->isa_internal, NULL, NULL);
> assert(xtensa_isa_maxlength(config->isa) <= MAX_INSN_LENGTH);
> + assert(xtensa_insnbuf_size(dc->config->isa) <= MAX_INSNBUF_LENGTH);
No 'dc->' here...
--
Thanks.
-- Max