mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
Fix incorrect exception_index use
env->exception_index should be cleared with -1, not 0.
See also 821b19fe92
.
Spotted by Igor Kovalenko.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
b5937f2978
commit
ee0dc6d393
3 changed files with 4 additions and 4 deletions
|
@ -38,7 +38,7 @@ int cpu_sh4_handle_mmu_fault(CPUState * env, target_ulong address, int rw,
|
|||
int mmu_idx, int is_softmmu)
|
||||
{
|
||||
env->tea = address;
|
||||
env->exception_index = 0;
|
||||
env->exception_index = -1;
|
||||
switch (rw) {
|
||||
case 0:
|
||||
env->exception_index = 0x0a0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue