Re: [Qemu-devel] [PATCH 2/2] tcg/optimize: Remember garbage high bits for 32-bit ops

2014-05-30 Thread Aurelien Jarno
On Fri, May 23, 2014 at 11:57:11AM -0700, Richard Henderson wrote: > For a 64-bit host, the high bits of a register after a 32-bit operation > are undefined. Adjust the temps mask for all 32-bit ops to reflect that. > > Signed-off-by: Richard Henderson > --- > tcg/optimize.c | 33 ++

Re: [Qemu-devel] [PATCH 2/2] tcg/optimize: Remember garbage high bits for 32-bit ops

2014-05-23 Thread Richard Henderson
On 05/23/2014 12:46 PM, Paolo Bonzini wrote: >> @@ -166,11 +166,18 @@ static void tcg_opt_gen_mov(TCGContext *s, int >> op_index, TCGArg *gen_args, >> TCGOpcode old_op, TCGArg dst, TCGArg src) >> { >> TCGOpcode new_op = op_to_mov(old_op); >> +tcg_target_ulong

Re: [Qemu-devel] [PATCH 2/2] tcg/optimize: Remember garbage high bits for 32-bit ops

2014-05-23 Thread Paolo Bonzini
Il 23/05/2014 20:57, Richard Henderson ha scritto: For a 64-bit host, the high bits of a register after a 32-bit operation are undefined. Adjust the temps mask for all 32-bit ops to reflect that. Signed-off-by: Richard Henderson --- tcg/optimize.c | 33 ++--- 1 fil

[Qemu-devel] [PATCH 2/2] tcg/optimize: Remember garbage high bits for 32-bit ops

2014-05-23 Thread Richard Henderson
For a 64-bit host, the high bits of a register after a 32-bit operation are undefined. Adjust the temps mask for all 32-bit ops to reflect that. Signed-off-by: Richard Henderson --- tcg/optimize.c | 33 ++--- 1 file changed, 26 insertions(+), 7 deletions(-) diff --g