diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-09-13 21:41:39 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-09-13 21:41:39 +0000 |
commit | cf720db33a6b46869a9c7c12d237a08d881e8bfb (patch) | |
tree | 22d89b2c59e78c4b1fb8c7c9b7910ac0e8038d6e | |
parent | 29e619b1e8b1b79255009451e26c1bdbd9338fa6 (diff) |
uname fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1066 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r-- | linux-user/arm/syscall.h | 6 | ||||
-rw-r--r-- | linux-user/i386/syscall.h | 1 | ||||
-rw-r--r-- | linux-user/ppc/syscall.h | 1 | ||||
-rw-r--r-- | linux-user/sparc/syscall.h | 2 |
4 files changed, 10 insertions, 0 deletions
diff --git a/linux-user/arm/syscall.h b/linux-user/arm/syscall.h index 0ced33ee5b..645036174d 100644 --- a/linux-user/arm/syscall.h +++ b/linux-user/arm/syscall.h @@ -28,3 +28,9 @@ struct target_pt_regs { #define ARM_SYSCALL_BASE 0x900000 #define ARM_NR_cacheflush (ARM_SYSCALL_BASE + 0xf0000 + 2) + +#if defined(TARGET_WORDS_BIGENDIAN) +#define UNAME_MACHINE "armv4b" +#else +#define UNAME_MACHINE "armv4l" +#endif diff --git a/linux-user/i386/syscall.h b/linux-user/i386/syscall.h index e1f470d78f..cc0942b811 100644 --- a/linux-user/i386/syscall.h +++ b/linux-user/i386/syscall.h @@ -218,3 +218,4 @@ union target_semun { unsigned int __pad; /* really void* */ }; +#define UNAME_MACHINE "i686" diff --git a/linux-user/ppc/syscall.h b/linux-user/ppc/syscall.h index e7ded9974b..eea8a7c9ab 100644 --- a/linux-user/ppc/syscall.h +++ b/linux-user/ppc/syscall.h @@ -127,3 +127,4 @@ union target_semun { unsigned int __pad; /* really void* */ }; +#define UNAME_MACHINE "ppc" diff --git a/linux-user/sparc/syscall.h b/linux-user/sparc/syscall.h index 474c87c305..5be90fa7f9 100644 --- a/linux-user/sparc/syscall.h +++ b/linux-user/sparc/syscall.h @@ -5,3 +5,5 @@ struct target_pt_regs { target_ulong y; target_ulong u_regs[16]; }; + +#define UNAME_MACHINE "sun4" |