sparc32 fix np dereference in do_unassigned_access
fix a potential null pointer dereference introduced in
commit 576c2cdc767ab9e2dc038fa4c99f22e53287a3de
Signed-off-by Artyom Tarasenko <[email protected]>
---
target-sparc/op_helper.c +2 -1
@@ -3761,13 +3761,14 @@ void do_unassigned_access(target_phys_addr_t addr, int is_write, int is_exec, else raise_exception(TT_DATA_ACCESS); } - env = saved_env;/* flush neverland mappings created during no-fault mode, so the sequential MMU faults report proper fault types */ if (env->mmuregs[0 ] &MMU_NF ) {tlb_flush (env,1 ); } + + env = saved_env; }#else void do_unassigned_access(target_phys_addr_t addr, int is_write, int is_exec,
Blue Swirl
AppliedThanks, applied.
Quoted 26 lines · Artyom Tarasenko
fix a potential null pointer dereference introduced in commit 576c2cdc767ab9e2dc038fa4c99f22e53287a3de
Signed-off-by Artyom Tarasenko <[email protected]>---
target-sparc/op_helper.c +0
-0@@ -3761,13 +3761,14 @@ void do_unassigned_access(target_phys_addr_t addr, int is_write, int is_exec,else
raise_exception(TT_DATA_ACCESS);
}
- env =saved_env;/* flush neverland mappings created during no-fault mode,
so the sequential MMU faults report proper fault types */ if (env->mmuregs[0] &MMU_NF) {
tlb_flush(env, 1);
}
+
+ env =saved_env;
}
#else
void do_unassigned_access(target_phys_addr_t addr, intis_write, intis_exec,