qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 8/8] hw: honor low bit in mipssim machine


From: Nathan Froyd
Subject: [Qemu-devel] [PATCH 8/8] hw: honor low bit in mipssim machine
Date: Tue, 8 Jun 2010 13:30:03 -0700

Signed-off-by: Nathan Froyd <address@hidden>
---
 hw/mips_mipssim.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/hw/mips_mipssim.c b/hw/mips_mipssim.c
index a747de5..293d99e 100644
--- a/hw/mips_mipssim.c
+++ b/hw/mips_mipssim.c
@@ -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
-- 
1.6.3.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]