]> git.proxmox.com Git - mirror_qemu.git/commitdiff
hw: honor low bit in mipssim machine
authorNathan Froyd <froydnj@codesourcery.com>
Tue, 8 Jun 2010 20:30:03 +0000 (13:30 -0700)
committerAurelien Jarno <aurelien@aurel32.net>
Wed, 9 Jun 2010 14:10:51 +0000 (16:10 +0200)
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
hw/mips_mipssim.c

index a747de596c919a51a6643e6c97d06290224dfffd..293d99ebeef5859ccf7517079d2999374eee8c26 100644 (file)
@@ -106,7 +106,10 @@ static void main_cpu_reset(void *opaque)
     CPUState *env = s->env;
 
     cpu_reset(env);
-    env->active_tc.PC = s->vector;
+    env->active_tc.PC = s->vector & ~(target_ulong)1;
+    if (s->vector & 1) {
+        env->hflags |= MIPS_HFLAG_M16;
+    }
 }
 
 static void