mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
M68K status register fixes.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2967 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
87ee166914
commit
0cf5c6771b
3 changed files with 6 additions and 8 deletions
|
@ -131,6 +131,8 @@ void do_interrupt(int is_hw)
|
|||
|
||||
vector = env->exception_index << 2;
|
||||
|
||||
sp = env->aregs[7];
|
||||
|
||||
fmt |= 0x40000000;
|
||||
fmt |= (sp & 3) << 28;
|
||||
fmt |= vector << 16;
|
||||
|
@ -143,8 +145,6 @@ void do_interrupt(int is_hw)
|
|||
}
|
||||
m68k_switch_sp(env);
|
||||
|
||||
sp = env->aregs[7];
|
||||
|
||||
/* ??? This could cause MMU faults. */
|
||||
sp &= ~3;
|
||||
sp -= 4;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue