summaryrefslogtreecommitdiffstats
path: root/linux-user/ppc
diff options
context:
space:
mode:
authorj_mayer2007-12-10 09:24:59 +0100
committerj_mayer2007-12-10 09:24:59 +0100
commite32448e059adc8e6b31df483a679b399bc990e5a (patch)
treecba858e97b3d8ba420e1489642ae6255c223ce07 /linux-user/ppc
parentCleanup: remove useless TARGET_GPR_BITS definition. (diff)
downloadqemu-e32448e059adc8e6b31df483a679b399bc990e5a.tar.gz
qemu-e32448e059adc8e6b31df483a679b399bc990e5a.tar.xz
qemu-e32448e059adc8e6b31df483a679b399bc990e5a.zip
Various linux-user structures and definitions fixes for PowerPC targets.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3800 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user/ppc')
-rw-r--r--linux-user/ppc/syscall.h30
-rw-r--r--linux-user/ppc/target_signal.h2
2 files changed, 18 insertions, 14 deletions
diff --git a/linux-user/ppc/syscall.h b/linux-user/ppc/syscall.h
index f98d2bca5a..2035dfbfdb 100644
--- a/linux-user/ppc/syscall.h
+++ b/linux-user/ppc/syscall.h
@@ -26,20 +26,24 @@
#define __USER_DS (1)
struct target_pt_regs {
- unsigned long gpr[32];
- unsigned long nip;
- unsigned long msr;
- unsigned long orig_gpr3; /* Used for restarting system calls */
- unsigned long ctr;
- unsigned long link;
- unsigned long xer;
- unsigned long ccr;
- unsigned long mq; /* 601 only (not used at present) */
+ abi_ulong gpr[32];
+ abi_ulong nip;
+ abi_ulong msr;
+ abi_ulong orig_gpr3; /* Used for restarting system calls */
+ abi_ulong ctr;
+ abi_ulong link;
+ abi_ulong xer;
+ abi_ulong ccr;
+#if defined(TARGET_PPC64) && !defined(TARGET_ABI32)
+ abi_ulong softe;
+#else
+ abi_ulong mq; /* 601 only (not used at present) */
+#endif
/* Used on APUS to hold IPL value. */
- unsigned long trap; /* Reason for being here */
- unsigned long dar; /* Fault registers */
- unsigned long dsisr;
- unsigned long result; /* Result of a system call */
+ abi_ulong trap; /* Reason for being here */
+ abi_ulong dar; /* Fault registers */
+ abi_ulong dsisr;
+ abi_ulong result; /* Result of a system call */
};
/* ioctls */
diff --git a/linux-user/ppc/target_signal.h b/linux-user/ppc/target_signal.h
index defae809a9..a93b5cf1df 100644
--- a/linux-user/ppc/target_signal.h
+++ b/linux-user/ppc/target_signal.h
@@ -7,7 +7,7 @@
typedef struct target_sigaltstack {
abi_ulong ss_sp;
- abi_long ss_flags;
+ int ss_flags;
abi_ulong ss_size;
} target_stack_t;