2016-06-29 11:47:26 +03:00
|
|
|
#ifndef SH4_TARGET_SYSCALL_H
|
|
|
|
#define SH4_TARGET_SYSCALL_H
|
2016-02-01 21:38:42 +03:00
|
|
|
|
2006-04-28 01:07:38 +04: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 16:50:41 +04:00
|
|
|
#define UNAME_MINIMUM_RELEASE "2.6.32"
|
2014-08-12 22:53:40 +04:00
|
|
|
|
2020-08-11 19:45:51 +03:00
|
|
|
#define TARGET_MCL_CURRENT 1
|
|
|
|
#define TARGET_MCL_FUTURE 2
|
|
|
|
#define TARGET_MCL_ONFAULT 4
|
2016-02-01 21:38:42 +03:00
|
|
|
|
2016-07-11 18:48:11 +03:00
|
|
|
#define TARGET_FORCE_SHMLBA
|
|
|
|
|
|
|
|
static inline abi_ulong target_shmlba(CPUSH4State *env)
|
|
|
|
{
|
|
|
|
return 0x4000;
|
|
|
|
}
|
|
|
|
|
2016-06-29 11:47:26 +03:00
|
|
|
#endif /* SH4_TARGET_SYSCALL_H */
|