qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Fix default CPU model for ARM64
@ 2015-05-06 15:03 Pavel Fedin
  2015-05-06 15:50 ` Peter Maydell
  0 siblings, 1 reply; 12+ messages in thread
From: Pavel Fedin @ 2015-05-06 15:03 UTC (permalink / raw)
  To: qemu-devel

 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.fedin@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

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

end of thread, other threads:[~2015-05-10 21:07 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-06 15:03 [Qemu-devel] [PATCH] Fix default CPU model for ARM64 Pavel Fedin
2015-05-06 15:50 ` Peter Maydell
2015-05-06 18:06   ` Pavel Fedin
2015-05-06 18:15     ` Peter Maydell
2015-05-07  6:36       ` Pavel Fedin
2015-05-07 14:38         ` Cole Robinson
2015-05-08  7:14           ` Pavel Fedin
2015-05-08  7:59             ` Peter Crosthwaite
2015-05-08  8:44               ` Pavel Fedin
2015-05-08 15:59                 ` Peter Crosthwaite
2015-05-08  8:39             ` Paolo Bonzini
2015-05-10 21:07             ` Cole Robinson

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).