mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
accel/tcg: Remove CPUState.icount_decr_ptr
We can now access icount_decr directly. Reviewed-by: Anton Johansson <anjo@rev.ng> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
3b3d7df545
commit
e62de98111
3 changed files with 2 additions and 5 deletions
|
@ -86,7 +86,7 @@ void cpu_exit(CPUState *cpu)
|
|||
qatomic_set(&cpu->exit_request, 1);
|
||||
/* Ensure cpu_exec will see the exit request after TCG has exited. */
|
||||
smp_wmb();
|
||||
qatomic_set(&cpu->icount_decr_ptr->u16.high, -1);
|
||||
qatomic_set(&cpu->neg.icount_decr.u16.high, -1);
|
||||
}
|
||||
|
||||
static int cpu_common_gdb_read_register(CPUState *cpu, GByteArray *buf, int reg)
|
||||
|
@ -130,7 +130,7 @@ static void cpu_common_reset_hold(Object *obj)
|
|||
cpu->halted = cpu->start_powered_off;
|
||||
cpu->mem_io_pc = 0;
|
||||
cpu->icount_extra = 0;
|
||||
qatomic_set(&cpu->icount_decr_ptr->u32, 0);
|
||||
qatomic_set(&cpu->neg.icount_decr.u32, 0);
|
||||
cpu->can_do_io = 1;
|
||||
cpu->exception_index = -1;
|
||||
cpu->crash_occurred = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue