[PULL,10/11] hw/arm/boot: Rebuild hflags when modifying CPUState at boot

Message ID 20191101085140.5205-11-peter.maydell@linaro.org
State Accepted
Commit 98be6b7d62124a1ec9a7094c2a30981f82a07f9f
Headers show
Series
  • target-arm queue
Related show

Commit Message

Peter Maydell Nov. 1, 2019, 8:51 a.m.
From: "Edgar E. Iglesias" <edgar.iglesias@xilinx.com>


Rebuild hflags when modifying CPUState at boot.

Fixes: e979972a6a
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>

Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>

Reviewed-by: Luc Michel <luc.michel@greensocs.com>

Message-id: 20191031040830.18800-2-edgar.iglesias@xilinx.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>

---
 hw/arm/boot.c | 1 +
 1 file changed, 1 insertion(+)

-- 
2.20.1

Patch

diff --git a/hw/arm/boot.c b/hw/arm/boot.c
index c264864c11d..ef6724960c0 100644
--- a/hw/arm/boot.c
+++ b/hw/arm/boot.c
@@ -786,6 +786,7 @@  static void do_cpu_reset(void *opaque)
                 info->secondary_cpu_reset_hook(cpu, info);
             }
         }
+        arm_rebuild_hflags(env);
     }
 }