Re: [Qemu-devel] [PATCH 01/35] tcg: access cpu->icount_decr.u16.high with atomics

2018-09-18 Thread Richard Henderson
On 9/17/18 9:30 AM, Emilio G. Cota wrote: > Consistently access u16.high with atomics to avoid > undefined behaviour in MTTCG. > > Note that icount_decr.u16.low is only used in icount mode, > so regular accesses to it are OK. > > Cc: Peter Crosthwaite > Cc: Richard Henderson > Signed-off-by: Em

[Qemu-devel] [PATCH 01/35] tcg: access cpu->icount_decr.u16.high with atomics

2018-09-17 Thread Emilio G. Cota
Consistently access u16.high with atomics to avoid undefined behaviour in MTTCG. Note that icount_decr.u16.low is only used in icount mode, so regular accesses to it are OK. Cc: Peter Crosthwaite Cc: Richard Henderson Signed-off-by: Emilio G. Cota --- accel/tcg/tcg-all.c | 2 +- accel/t