Skip to contentSkip to conversation

[7192] Fix target_siginfo ordering for MIPS.

Qemu-devel Paul Brook 1 participant 1 message Apr 21, 2009

lore
Share & tools
lore

Paul Brook

author
#0 lore raw

Revision: 7192

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=7192
Author:   pbrook
Date:     2009-04-21 00:59:40 +0000 (Tue, 21 Apr 2009)

Log Message:
-----------
Fix target_siginfo ordering for MIPS.

Modified Paths:
--------------
trunk/linux-user/syscall_defs.h

Modified: trunk/linux-user/syscall_defs.h
===================================================================

linux-user/syscall_defs.h +6 -0
@@ -504,9 +504,15 @@
 #define TARGET_SI_PAD_SIZE	((TARGET_SI_MAX_SIZE/sizeof(int)) - 3)
 
 typedef struct target_siginfo {
+#ifdef TARGET_MIPS
 	int si_signo;
+	int si_code;
 	int si_errno;
+#else
+	int si_signo;
+	int si_errno;
 	int si_code;
+#endif
 
 	union {
 		int _pad[TARGET_SI_PAD_SIZE];