From: Pavel Fedin <p.fedin@samsung.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] Fix default CPU model for ARM64
Date: Wed, 06 May 2015 18:03:42 +0300 [thread overview]
Message-ID: <00d901d0880d$d795b750$86c125f0$@samsung.com> (raw)
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
next reply other threads:[~2015-05-06 15:03 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-06 15:03 Pavel Fedin [this message]
2015-05-06 15:50 ` [Qemu-devel] [PATCH] Fix default CPU model for ARM64 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='00d901d0880d$d795b750$86c125f0$@samsung.com' \
--to=p.fedin@samsung.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).