mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
sparc32 fix np dereference in do_unassigned_access
fix a potential null pointer dereference introduced in
commit 576c2cdc76
Signed-off-by: Artyom Tarasenko <atar4qemu@gmail.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
204c7a39d0
commit
15e7c45139
1 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue