mirror of
https://github.com/qemu/qemu.git
synced 2024-11-29 23:03:41 +08:00
linux-user: honor low bit of entry PC for MIPS
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
bbfa8f72e9
commit
0fddbbf255
@ -3271,7 +3271,10 @@ int main(int argc, char **argv, char **envp)
|
||||
for(i = 0; i < 32; i++) {
|
||||
env->active_tc.gpr[i] = regs->regs[i];
|
||||
}
|
||||
env->active_tc.PC = regs->cp0_epc;
|
||||
env->active_tc.PC = regs->cp0_epc & ~(target_ulong)1;
|
||||
if (regs->cp0_epc & 1) {
|
||||
env->hflags |= MIPS_HFLAG_M16;
|
||||
}
|
||||
}
|
||||
#elif defined(TARGET_SH4)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user