mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
cpu_loop_exit: avoid using AREG0
Make cpu_loop_exit() take a parameter for CPUState instead of relying on global env. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
4d2c2b77f3
commit
1162c041c1
16 changed files with 57 additions and 56 deletions
|
@ -38,7 +38,7 @@ void helper_raise_exception_err (uint32_t exception, int error_code)
|
|||
#endif
|
||||
env->exception_index = exception;
|
||||
env->error_code = error_code;
|
||||
cpu_loop_exit();
|
||||
cpu_loop_exit(env);
|
||||
}
|
||||
|
||||
void helper_raise_exception (uint32_t exception)
|
||||
|
@ -277,7 +277,7 @@ static inline target_phys_addr_t do_translate_address(target_ulong address, int
|
|||
lladdr = cpu_mips_translate_address(env, address, rw);
|
||||
|
||||
if (lladdr == -1LL) {
|
||||
cpu_loop_exit();
|
||||
cpu_loop_exit(env);
|
||||
} else {
|
||||
return lladdr;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue