qemu-arm
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-arm] [PATCH v2] arm: virt: Fix the segmentation fault when specify


From: Shannon Zhao
Subject: [Qemu-arm] [PATCH v2] arm: virt: Fix the segmentation fault when specifying an unsupported CPU
Date: Tue, 17 Jan 2017 10:15:34 +0800

From: Shannon Zhao <address@hidden>

For example, using -cpu generic will cause qemu segmentation fault.

Signed-off-by: Shannon Zhao <address@hidden>
---
V2: Just remove the member NULL instead of checking twice
---
 hw/arm/virt.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/hw/arm/virt.c b/hw/arm/virt.c
index 7a03f84..95ac585 100644
--- a/hw/arm/virt.c
+++ b/hw/arm/virt.c
@@ -167,7 +167,6 @@ static const char *valid_cpus[] = {
     "cortex-a53",
     "cortex-a57",
     "host",
-    NULL
 };
 
 static bool cpuname_valid(const char *cpu)
-- 
2.0.4





reply via email to

[Prev in Thread] Current Thread [Next in Thread]