2016-06-29 10:47:26 +02:00
|
|
|
#ifndef SH4_TARGET_SYSCALL_H
|
|
|
|
#define SH4_TARGET_SYSCALL_H
|
2016-02-01 19:38:42 +01:00
|
|
|
|
2006-04-27 23:07:38 +02:00
|
|
|
struct target_pt_regs {
|
|
|
|
unsigned long regs[16];
|
|
|
|
unsigned long pc;
|
|
|
|
unsigned long pr;
|
|
|
|
unsigned long sr;
|
|
|
|
unsigned long gbr;
|
|
|
|
unsigned long mach;
|
|
|
|
unsigned long macl;
|
|
|
|
long tra;
|
|
|
|
};
|
|
|
|
|
|
|
|
#define UNAME_MACHINE "sh4"
|
2014-02-19 13:50:41 +01:00
|
|
|
#define UNAME_MINIMUM_RELEASE "2.6.32"
|
2014-08-12 20:53:40 +02:00
|
|
|
|
2020-08-11 18:45:51 +02:00
|
|
|
#define TARGET_MCL_CURRENT 1
|
|
|
|
#define TARGET_MCL_FUTURE 2
|
|
|
|
#define TARGET_MCL_ONFAULT 4
|
2016-02-01 19:38:42 +01:00
|
|
|
|
2016-07-11 17:48:11 +02:00
|
|
|
#define TARGET_FORCE_SHMLBA
|
|
|
|
|
|
|
|
static inline abi_ulong target_shmlba(CPUSH4State *env)
|
|
|
|
{
|
|
|
|
return 0x4000;
|
|
|
|
}
|
|
|
|
|
2016-06-29 10:47:26 +02:00
|
|
|
#endif /* SH4_TARGET_SYSCALL_H */
|