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 <richard.hender...@linaro.org> > Signed-off-by: Max Filippov <jcmvb...@gmail.com> > --- > 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 <richard.hender...@linaro.org> Tested-by: Richard Henderson <richard.hender...@linaro.org> r~