Message ID | CAAu8pHuyBNMyg5x+2V4P8ZCzy9K5-6SyttOxKFP1QfOdF_R6xQ@mail.gmail.com |
---|---|
State | New |
Headers | show |
diff --git a/target-sparc/op_helper.c b/target-sparc/op_helper.c index c1c4d4b..9817f8d 100644 --- a/target-sparc/op_helper.c +++ b/target-sparc/op_helper.c @@ -4370,7 +4370,11 @@ void helper_tick_set_limit(void *opaque, uint64_t limit) void cpu_unassigned_access(CPUState *env1, target_phys_addr_t addr, int is_write, int is_exec, int is_asi, int size) { + CPUState *saved_env; + + saved_env = env; env = env1; do_unassigned_access(addr, is_write, is_exec, is_asi, size); + env = saved_env; } #endif