qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] hw/arm/pxa2xx: rebuild hflags cache when modifying CPU state
@ 2019-11-01 10:32 Luc Michel
  2019-11-01 10:42 ` Peter Maydell
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Luc Michel @ 2019-11-01 10:32 UTC (permalink / raw)
  To: qemu-devel, qemu-arm, Peter Maydell, Andrzej Zaborowski; +Cc: Luc Michel

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 <luc.michel@greensocs.com>
---
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



^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-11-05 20:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-01 10:32 [PATCH] hw/arm/pxa2xx: rebuild hflags cache when modifying CPU state Luc Michel
2019-11-01 10:42 ` Peter Maydell
2019-11-01 10:54   ` Luc Michel
2019-11-05 11:20   ` Richard Henderson
2019-11-05 20:27     ` Peter Maydell
2019-11-01 12:01 ` no-reply
2019-11-01 12:09 ` no-reply

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).