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>
Showing
- accel/tcg/cpu-exec.c 12 additions, 11 deletionsaccel/tcg/cpu-exec.c
- accel/tcg/tcg-all.c 2 additions, 4 deletionsaccel/tcg/tcg-all.c
- accel/tcg/translate-all.c 4 additions, 4 deletionsaccel/tcg/translate-all.c
- cpus.c 5 additions, 4 deletionscpus.c
- include/exec/cpu-all.h 1 addition, 0 deletionsinclude/exec/cpu-all.h
- include/exec/cpu-defs.h 2 additions, 1 deletioninclude/exec/cpu-defs.h
- include/exec/gen-icount.h 10 additions, 6 deletionsinclude/exec/gen-icount.h
- include/qom/cpu.h 18 additions, 22 deletionsinclude/qom/cpu.h
- qom/cpu.c 2 additions, 2 deletionsqom/cpu.c
Loading
Please register or sign in to comment