[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 09/10] linux-user: honor low bit of entry PC for MIP
From: |
Nathan Froyd |
Subject: |
[Qemu-devel] [PATCH 09/10] linux-user: honor low bit of entry PC for MIPS |
Date: |
Thu, 20 May 2010 07:52:29 -0700 |
Signed-off-by: Nathan Froyd <address@hidden>
---
linux-user/main.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/linux-user/main.c b/linux-user/main.c
index 18b52c0..76d443b 100644
--- a/linux-user/main.c
+++ b/linux-user/main.c
@@ -3192,7 +3192,9 @@ 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)
{
--
1.6.3.2
- [Qemu-devel] [PATCH 01/10] target-mips: break out [ls][wd]c1 and rdhwr insn generation, (continued)
- [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, 2010/05/20
- [Qemu-devel] [PATCH 09/10] linux-user: honor low bit of entry PC for MIPS,
Nathan Froyd <=