[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] hw/arm/pxa2xx: rebuild hflags cache when modifying CPU state
From: |
Luc Michel |
Subject: |
[PATCH] hw/arm/pxa2xx: rebuild hflags cache when modifying CPU state |
Date: |
Fri, 1 Nov 2019 11:32:32 +0100 |
This machine modifies the CPU state when simulating suspend mode. This
commit adds a missing call to arm_rebuild_hflags after those
modifications.
Signed-off-by: Luc Michel <address@hidden>
---
I came over this missing hflags rebuild while reviewing Edgar's similar
fix in hw/arm/boot.c. I could not find any other place where it would be
missing but I may be wrong.
---
hw/arm/pxa2xx.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/hw/arm/pxa2xx.c b/hw/arm/pxa2xx.c
index cdafde2f76..7982ffbfbe 100644
--- a/hw/arm/pxa2xx.c
+++ b/hw/arm/pxa2xx.c
@@ -306,6 +306,8 @@ static void pxa2xx_pwrmode_write(CPUARMState *env, const
ARMCPRegInfo *ri,
cpu_physical_memory_write(8, &buffer, 4);
#endif
+ arm_rebuild_hflags(s->cpu->env);
+
/* Suspend */
cpu_interrupt(current_cpu, CPU_INTERRUPT_HALT);
--
2.23.0
- [PATCH] hw/arm/pxa2xx: rebuild hflags cache when modifying CPU state,
Luc Michel <=