Commit cf720db33a6b46869a9c7c12d237a08d881e8bfb

Authored by bellard
1 parent 29e619b1

uname fix


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1066 c046a42c-6fe2-441c-8c8c-71466251a162
linux-user/arm/syscall.h
@@ -28,3 +28,9 @@ struct target_pt_regs { @@ -28,3 +28,9 @@ struct target_pt_regs {
28 #define ARM_SYSCALL_BASE 0x900000 28 #define ARM_SYSCALL_BASE 0x900000
29 29
30 #define ARM_NR_cacheflush (ARM_SYSCALL_BASE + 0xf0000 + 2) 30 #define ARM_NR_cacheflush (ARM_SYSCALL_BASE + 0xf0000 + 2)
  31 +
  32 +#if defined(TARGET_WORDS_BIGENDIAN)
  33 +#define UNAME_MACHINE "armv4b"
  34 +#else
  35 +#define UNAME_MACHINE "armv4l"
  36 +#endif
linux-user/i386/syscall.h
@@ -218,3 +218,4 @@ union target_semun { @@ -218,3 +218,4 @@ union target_semun {
218 unsigned int __pad; /* really void* */ 218 unsigned int __pad; /* really void* */
219 }; 219 };
220 220
  221 +#define UNAME_MACHINE "i686"
linux-user/ppc/syscall.h
@@ -127,3 +127,4 @@ union target_semun { @@ -127,3 +127,4 @@ union target_semun {
127 unsigned int __pad; /* really void* */ 127 unsigned int __pad; /* really void* */
128 }; 128 };
129 129
  130 +#define UNAME_MACHINE "ppc"
linux-user/sparc/syscall.h
@@ -5,3 +5,5 @@ struct target_pt_regs { @@ -5,3 +5,5 @@ struct target_pt_regs {
5 target_ulong y; 5 target_ulong y;
6 target_ulong u_regs[16]; 6 target_ulong u_regs[16];
7 }; 7 };
  8 +
  9 +#define UNAME_MACHINE "sun4"