]> Git Repo - qemu.git/commit - qom/cpu.c
tcg: access cpu->icount_decr.u16.high with atomics
authorEmilio G. Cota <[email protected]>
Wed, 10 Oct 2018 14:48:50 +0000 (10:48 -0400)
committerRichard Henderson <[email protected]>
Fri, 19 Oct 2018 01:58:10 +0000 (18:58 -0700)
commitfff42f183ea4c3967405d4c1dce6d97dae4d64c8
tree5d68af55ddf42c9025133a17c0a21e318a47aaae
parentd7f425fdea991f052241c6479acd9feae834063b
tcg: access cpu->icount_decr.u16.high with atomics

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.

Reviewed-by: Richard Henderson <[email protected]>
Signed-off-by: Emilio G. Cota <[email protected]>
Message-Id: <20181010144853[email protected]>
Signed-off-by: Richard Henderson <[email protected]>
accel/tcg/tcg-all.c
accel/tcg/translate-all.c
qom/cpu.c
This page took 0.025272 seconds and 4 git commands to generate.