nexus-am/am/include/arch/mips32-nemu.h

18 lines
269 B
C
Raw Normal View History

2019-01-13 15:09:05 +08:00
#ifndef __ARCH_H__
#define __ARCH_H__
2019-01-14 01:18:13 +08:00
struct _Context {
2019-02-01 21:01:09 +08:00
struct _AddressSpace *prot;
2019-01-17 20:09:42 +08:00
uint32_t gpr[31];
uint32_t lo, hi;
uint32_t cause, status, epc;
2019-01-14 01:18:13 +08:00
};
2019-01-18 01:29:10 +08:00
#define GPR1 gpr[3]
#define GPR2 gpr[4]
#define GPR3 gpr[5]
#define GPR4 gpr[6]
#define GPRx gpr[1]
2019-01-17 20:09:42 +08:00
2019-01-13 15:09:05 +08:00
#endif