From e32448e059adc8e6b31df483a679b399bc990e5a Mon Sep 17 00:00:00 2001 From: j_mayer Date: Mon, 10 Dec 2007 08:24:59 +0000 Subject: 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 --- linux-user/ppc/syscall.h | 30 +++++++++++++++++------------- linux-user/ppc/target_signal.h | 2 +- 2 files changed, 18 insertions(+), 14 deletions(-) (limited to 'linux-user/ppc') diff --git a/linux-user/ppc/syscall.h b/linux-user/ppc/syscall.h index f98d2bc..2035dfb 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 defae80..a93b5cf 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; -- cgit v1.1