Received: from eggs.gnu.org ([2001:4830:134:3::10]:35611)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from
) id 1Yq0rX-0004n7-9M
for qemu-devel@nongnu.org; Wed, 06 May 2015 11:03:52 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1Yq0rT-00086i-DG
for qemu-devel@nongnu.org; Wed, 06 May 2015 11:03:51 -0400
Received: from mailout3.w1.samsung.com ([210.118.77.13]:41540)
by eggs.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1Yq0rT-00086O-7x
for qemu-devel@nongnu.org; Wed, 06 May 2015 11:03:47 -0400
Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244])
by mailout3.w1.samsung.com
(Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5
2014)) with ESMTP id <0NNX00HFQOI7E4B0@mailout3.w1.samsung.com> for
qemu-devel@nongnu.org; Wed, 06 May 2015 16:03:43 +0100 (BST)
Received: from fedinw7x64 ([106.109.131.169])
by eusync2.samsung.com (Oracle Communications Messaging Server
7.0.5.31.0 64bit (built May 5 2014))
with ESMTPA id <0NNX00KHEOI6AA80@eusync2.samsung.com> for
qemu-devel@nongnu.org; Wed, 06 May 2015 16:03:42 +0100 (BST)
From: Pavel Fedin
Date: Wed, 06 May 2015 18:03:42 +0300
Message-id: <00d901d0880d$d795b750$86c125f0$@samsung.com>
MIME-version: 1.0
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7bit
Content-language: ru
Subject: [Qemu-devel] [PATCH] Fix default CPU model for ARM64
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
To: qemu-devel@nongnu.org
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
---
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