]> Git Repo - qemu.git/commitdiff
linux-user: honor low bit of entry PC for MIPS
authorNathan Froyd <[email protected]>
Tue, 8 Jun 2010 20:30:02 +0000 (13:30 -0700)
committerAurelien Jarno <[email protected]>
Wed, 9 Jun 2010 14:10:51 +0000 (16:10 +0200)
Signed-off-by: Nathan Froyd <[email protected]>
Signed-off-by: Aurelien Jarno <[email protected]>
linux-user/main.c

index 0f23fc9cd9c1d6c1bd70ac6af4c72d62f7abb9a0..ad292f16e449dface1c9820a6c1100b6d13ff123 100644 (file)
@@ -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)
     {
This page took 0.029527 seconds and 4 git commands to generate.