OSDN Git Service

cpu: Move icount_decr to CPUNegativeOffsetState
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 28 Mar 2019 21:54:23 +0000 (11:54 -1000)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 10 Jun 2019 14:03:42 +0000 (07:03 -0700)
commit5e1401969b25f676fee6b1c564441759cf967a43
tree7ad13ea2a9043d2586c1e6f57ea5055e01354cf4
parent5b146dc716cfd247f99556c04e6e46fbd67565a0
cpu: Move icount_decr to CPUNegativeOffsetState

Amusingly, we had already ignored the comment to keep this value
at the end of CPUState.  This restores the minimum negative offset
from TCG_AREG0 for code generation.

For the couple of uses within qom/cpu.c, without NEED_CPU_H, add
a pointer from the CPUState object to the IcountDecr object within
CPUNegativeOffsetState.

Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
accel/tcg/cpu-exec.c
accel/tcg/tcg-all.c
accel/tcg/translate-all.c
cpus.c
include/exec/cpu-all.h
include/exec/cpu-defs.h
include/exec/gen-icount.h
include/qom/cpu.h
qom/cpu.c