mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
fixed eret insn (Ralf Baechle)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1474 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
90b37806ba
commit
51e11d9e6c
1 changed files with 5 additions and 2 deletions
|
@ -597,10 +597,13 @@ void debug_eret (void);
|
||||||
void op_eret (void)
|
void op_eret (void)
|
||||||
{
|
{
|
||||||
CALL_FROM_TB0(debug_eret);
|
CALL_FROM_TB0(debug_eret);
|
||||||
if (env->hflags & MIPS_HFLAG_ERL)
|
if (env->hflags & MIPS_HFLAG_ERL) {
|
||||||
env->PC = env->CP0_ErrorEPC;
|
env->PC = env->CP0_ErrorEPC;
|
||||||
else
|
env->hflags &= ~MIPS_HFLAG_ERL;
|
||||||
|
} else {
|
||||||
env->PC = env->CP0_EPC;
|
env->PC = env->CP0_EPC;
|
||||||
|
env->hflags &= ~MIPS_HFLAG_EXL;
|
||||||
|
}
|
||||||
env->CP0_LLAddr = 1;
|
env->CP0_LLAddr = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue