[Top][All Lists]
[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
- [Qemu-devel] [PATCH 0/8] target-mips: add microMIPS ASE support, v3, Nathan Froyd, 2010/06/08
- [Qemu-devel] [PATCH 7/8] linux-user: honor low bit of entry PC for MIPS, Nathan Froyd, 2010/06/08
- [Qemu-devel] [PATCH 2/8] target-mips: refactor c{, abs}.cond.fmt insns, Nathan Froyd, 2010/06/08
- [Qemu-devel] [PATCH 8/8] hw: honor low bit in mipssim machine,
Nathan Froyd <=
- [Qemu-devel] [PATCH 1/8] target-mips: define constants for magic numbers, Nathan Froyd, 2010/06/08
- [Qemu-devel] [PATCH 5/8] target-mips: add microMIPS CPUs, Nathan Froyd, 2010/06/08
- [Qemu-devel] [PATCH 3/8] target-mips: mips16 cleanups, Nathan Froyd, 2010/06/08
- [Qemu-devel] [PATCH 4/8] target-mips: microMIPS ASE support, Nathan Froyd, 2010/06/08
- [Qemu-devel] [PATCH 6/8] target-mips: add microMIPS exception handler support, Nathan Froyd, 2010/06/08
- Re: [Qemu-devel] [PATCH 0/8] target-mips: add microMIPS ASE support, v3, Aurelien Jarno, 2010/06/09