[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] ARM: Fix disable interrupt for M profile
From: |
Fabien Chouteau |
Subject: |
[Qemu-devel] [PATCH] ARM: Fix disable interrupt for M profile |
Date: |
Thu, 30 May 2013 18:22:30 +0200 |
I'm not sure this was expected or not, but it looks like the "||" should
be a "&&". Otherwise it's not possible to disable interrupt.
Signed-off-by: Fabien Chouteau <address@hidden>
---
cpu-exec.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cpu-exec.c b/cpu-exec.c
index 31c089d..079b6f0 100644
--- a/cpu-exec.c
+++ b/cpu-exec.c
@@ -462,8 +462,8 @@ int cpu_exec(CPUArchState *env)
We avoid this by disabling interrupts when
pc contains a magic address. */
if (interrupt_request & CPU_INTERRUPT_HARD
- && ((IS_M(env) && env->regs[15] < 0xfffffff0)
- || !(env->uncached_cpsr & CPSR_I))) {
+ && (IS_M(env) && env->regs[15] < 0xfffffff0)
+ && !(env->uncached_cpsr & CPSR_I)) {
env->exception_index = EXCP_IRQ;
cc->do_interrupt(cpu);
next_tb = 0;
--
1.7.9.5
- [Qemu-devel] [PATCH] ARM: Fix disable interrupt for M profile,
Fabien Chouteau <=