Skip to contentSkip to conversation

linux-user: Don't treat aarch64 cpu names specially

PATCH Superseded John Rigby 1 participant 1 message Apr 30, 2013

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore

John Rigby

author
#0 lore raw

PATCH v2 5/12 linux-user: Don't treat aarch64 cpu names specially

From: Alexander Graf <[email protected]>

32-bit ARM has a lot of different names for different types of CPUs it supports. On AArch64, we don't have this, so we really don't want to execute the 32-bit logic. Stub it out for AArch64 linux-user guests.

---
 linux-user/cpu-uname.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
linux-user/cpu-uname.c +2 -1
index 59cd647..89bdb91 100644
@@ -30,7 +30,8 @@
  * return here */
 const char *cpu_to_uname_machine(void *cpu_env)
 {
-#ifdef TARGET_ARM
+#if defined(TARGET_ARM) && !defined(TARGET_AARCH64)
+
     /* utsname machine name on linux arm is CPU arch name + endianness, e.g.
      * armv7l; to get a list of CPU arch names from the linux source, use:
      *     grep arch_name: -A1 linux/arch/arm/mm/proc-*.S
Signature · 1 line
1.7.9.5