提交 acd858d9 编写于 作者: T ths

Handle EBase properly.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2613 c046a42c-6fe2-441c-8c8c-71466251a162
上级 3529b538
......@@ -398,7 +398,7 @@ void do_interrupt (CPUState *env)
if (env->CP0_Status & (1 << CP0St_BEV)) {
env->PC = (int32_t)0xBFC00200;
} else {
env->PC = (int32_t)0x80000000;
env->PC = (int32_t)(env->CP0_EBase & ~0x3ff);
}
env->PC += offset;
env->CP0_Cause = (env->CP0_Cause & ~0x7C) | (cause << 2);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册