xref: /qemu/linux-user/mips64/target_syscall.h (revision 41fb4c14ee500125dc0ce6fb573cf84b8db29ed0)
13622634bSMarkus Armbruster #ifndef MIPS64_TARGET_SYSCALL_H
23622634bSMarkus Armbruster #define MIPS64_TARGET_SYSCALL_H
3540635baSths 
4540635baSths /* this struct defines the way the registers are stored on the
5540635baSths    stack during a system call. */
6540635baSths 
7540635baSths struct target_pt_regs {
8540635baSths         /* Saved main processor registers. */
9597e2cecSRichard Henderson         target_ulong regs[32];
10540635baSths 
11540635baSths         /* Saved special registers. */
12597e2cecSRichard Henderson         target_ulong cp0_status;
13597e2cecSRichard Henderson         target_ulong lo;
14597e2cecSRichard Henderson         target_ulong hi;
15597e2cecSRichard Henderson         target_ulong cp0_badvaddr;
16597e2cecSRichard Henderson         target_ulong cp0_cause;
17597e2cecSRichard Henderson         target_ulong cp0_epc;
18540635baSths };
19540635baSths 
20540635baSths #define UNAME_MACHINE "mips64"
21cbc14e6fSRiku Voipio #define UNAME_MINIMUM_RELEASE "2.6.32"
224ce6243dSPeter Maydell 
234ce6243dSPeter Maydell #define TARGET_CLONE_BACKWARDS
24*02e5d7d7SFilip Bozuta #define TARGET_MCL_CURRENT 1
25*02e5d7d7SFilip Bozuta #define TARGET_MCL_FUTURE  2
26*02e5d7d7SFilip Bozuta #define TARGET_MCL_ONFAULT 4
27460c579fSLluís Vilanova 
28ee8e7614SPeter Maydell #define TARGET_FORCE_SHMLBA
29ee8e7614SPeter Maydell 
target_shmlba(CPUMIPSState * env)30ee8e7614SPeter Maydell static inline abi_ulong target_shmlba(CPUMIPSState *env)
31ee8e7614SPeter Maydell {
32ee8e7614SPeter Maydell     return 0x40000;
33ee8e7614SPeter Maydell }
34ee8e7614SPeter Maydell 
353622634bSMarkus Armbruster #endif /* MIPS64_TARGET_SYSCALL_H */
36