mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
Another fix for CP0 Cause register handling.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2658 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
5425a2164c
commit
e58c8ba5f6
2 changed files with 2 additions and 2 deletions
|
@ -403,7 +403,7 @@ void do_interrupt (CPUState *env)
|
|||
env->PC = (int32_t)(env->CP0_EBase & ~0x3ff);
|
||||
}
|
||||
env->PC += offset;
|
||||
env->CP0_Cause = (env->CP0_Cause & ~0x7C) | (cause << 2);
|
||||
env->CP0_Cause = (env->CP0_Cause & ~(0x1f << CP0Ca_EC)) | (cause << CP0Ca_EC);
|
||||
break;
|
||||
default:
|
||||
if (logfile) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue