mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
translate-all: Change cpu_restore_state() argument to CPUState
This lets us drop some local variables in tlb_fill() functions. Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
5638d180d6
commit
3f38f309b2
24 changed files with 46 additions and 63 deletions
|
@ -526,7 +526,7 @@ void QEMU_NORETURN dynamic_excp(CPUAlphaState *env, uintptr_t retaddr,
|
|||
cs->exception_index = excp;
|
||||
env->error_code = error;
|
||||
if (retaddr) {
|
||||
cpu_restore_state(env, retaddr);
|
||||
cpu_restore_state(cs, retaddr);
|
||||
}
|
||||
cpu_loop_exit(cs);
|
||||
}
|
||||
|
|
|
@ -105,7 +105,7 @@ static void do_unaligned_access(CPUAlphaState *env, target_ulong addr,
|
|||
uint32_t insn;
|
||||
|
||||
if (retaddr) {
|
||||
cpu_restore_state(env, retaddr);
|
||||
cpu_restore_state(cs, retaddr);
|
||||
}
|
||||
|
||||
pc = env->pc;
|
||||
|
@ -159,11 +159,8 @@ void tlb_fill(CPUState *cs, target_ulong addr, int is_write,
|
|||
|
||||
ret = alpha_cpu_handle_mmu_fault(cs, addr, is_write, mmu_idx);
|
||||
if (unlikely(ret != 0)) {
|
||||
AlphaCPU *cpu = ALPHA_CPU(cs);
|
||||
CPUAlphaState *env = &cpu->env;
|
||||
|
||||
if (retaddr) {
|
||||
cpu_restore_state(env, retaddr);
|
||||
cpu_restore_state(cs, retaddr);
|
||||
}
|
||||
/* Exception index and error code are already set */
|
||||
cpu_loop_exit(cs);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue