qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] target/xtensa: statically allocate xtensa_insnbufs in DisasC


From: Richard Henderson
Subject: Re: [PATCH] target/xtensa: statically allocate xtensa_insnbufs in DisasContext
Date: Tue, 7 Apr 2020 13:29:37 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1

On 4/7/20 12:09 PM, Max Filippov wrote:
> Rather than dynamically allocate, and risk failing to free
> when we longjmp out of the translator, allocate the maximum
> buffer size based on the maximum supported instruction length.
> 
> Suggested-by: Richard Henderson <address@hidden>
> Signed-off-by: Max Filippov <address@hidden>
> ---
>  target/xtensa/cpu.h       |  3 +++
>  target/xtensa/helper.c    |  1 +
>  target/xtensa/translate.c | 17 ++---------------
>  3 files changed, 6 insertions(+), 15 deletions(-)

Reviewed-by: Richard Henderson <address@hidden>
Tested-by:  Richard Henderson <address@hidden>


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]