[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 10/10] hw: honor low bit in mipssim machine
From: |
Nathan Froyd |
Subject: |
[Qemu-devel] [PATCH 10/10] hw: honor low bit in mipssim machine |
Date: |
Thu, 20 May 2010 07:52:30 -0700 |
Signed-off-by: Nathan Froyd <address@hidden>
---
hw/mips_mipssim.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/hw/mips_mipssim.c b/hw/mips_mipssim.c
index a747de5..cd6c2be 100644
--- a/hw/mips_mipssim.c
+++ b/hw/mips_mipssim.c
@@ -106,7 +106,9 @@ 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
- [Qemu-devel] [PATCH 02/10] target-mips: add microMIPS-specific bits to mips-defs.h, (continued)
- [Qemu-devel] [PATCH 02/10] target-mips: add microMIPS-specific bits to mips-defs.h, Nathan Froyd, 2010/05/20
- [Qemu-devel] [PATCH 01/10] target-mips: break out [ls][wd]c1 and rdhwr insn generation, Nathan Froyd, 2010/05/20
- [Qemu-devel] [PATCH 05/10] target-mips: small changes to use new FMT_ enums, Nathan Froyd, 2010/05/20
- [Qemu-devel] [PATCH 07/10] target-mips: add microMIPS CPUs, Nathan Froyd, 2010/05/20
- [Qemu-devel] [PATCH 06/10] target-mips: add microMIPS ASE support, Nathan Froyd, 2010/05/20
- [Qemu-devel] [PATCH 08/10] target-mips: add microMIPS exception handler support, Nathan Froyd, 2010/05/20
- [Qemu-devel] [PATCH 03/10] target-mips: add enum constants for various invocations of FOP, Nathan Froyd, 2010/05/20
- [Qemu-devel] [PATCH 04/10] target-mips: refactor {c, abs}.cond.fmt insns, Nathan Froyd, 2010/05/20
- [Qemu-devel] [PATCH 10/10] hw: honor low bit in mipssim machine,
Nathan Froyd <=
- [Qemu-devel] [PATCH 09/10] linux-user: honor low bit of entry PC for MIPS, Nathan Froyd, 2010/05/20