This small patch fixes a long-standing bug: A15 model is used by default
also on ARM64 target. As a result, attempt to run the VM without explicit
-cpu specification does not do anything good.

Signed-off-by: Pavel Fedin <p.fe...@samsung.com>
---
 hw/arm/virt.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/hw/arm/virt.c b/hw/arm/virt.c
index 6a45d94..b064bac 100644
--- a/hw/arm/virt.c
+++ b/hw/arm/virt.c
@@ -785,7 +785,11 @@ static void machvirt_init(MachineState *machine)
     char **cpustr;
 
     if (!cpu_model) {
+#ifdef TARGET_AARCH64
+        cpu_model = "cortex-a57";
+#else
         cpu_model = "cortex-a15";
+#endif
     }
 
     /* Separate the actual CPU model name from any appended features */
-- 
1.9.5.msysgit.0



Reply via email to