Re: [Qemu-devel] [PATCH] target/m68k: add a mechanism to automatically free TCGv

2018-03-19 Thread Laurent Vivier
Le 19/03/2018 à 09:39, Richard Henderson a écrit : > On 03/19/2018 12:12 AM, Laurent Vivier wrote: >> SRC_EA() and gen_extend() can return either a temporary >> TCGv or a memory allocated one. Mark them when they are >> allocated, and free them automatically at end of the >> instruction translation

Re: [Qemu-devel] [PATCH] target/m68k: add a mechanism to automatically free TCGv

2018-03-19 Thread Richard Henderson
On 03/19/2018 12:12 AM, Laurent Vivier wrote: > SRC_EA() and gen_extend() can return either a temporary > TCGv or a memory allocated one. Mark them when they are > allocated, and free them automatically at end of the > instruction translation. > > We want to free locally allocated TCGv to avoid >

Re: [Qemu-devel] [PATCH] target/m68k: add a mechanism to automatically free TCGv

2018-03-18 Thread Philippe Mathieu-Daudé
Hi Laurent, On 03/18/2018 05:12 PM, Laurent Vivier wrote: > SRC_EA() and gen_extend() can return either a temporary > TCGv or a memory allocated one. Mark them when they are > allocated, and free them automatically at end of the > instruction translation. > > We want to free locally allocated TCG

[Qemu-devel] [PATCH] target/m68k: add a mechanism to automatically free TCGv

2018-03-18 Thread Laurent Vivier
SRC_EA() and gen_extend() can return either a temporary TCGv or a memory allocated one. Mark them when they are allocated, and free them automatically at end of the instruction translation. We want to free locally allocated TCGv to avoid overflow in sequence like: 0xc00ae406: movel %fp@(-132),