am: add loongarch32r-nemu
This commit is contained in:
parent
ff88f398bc
commit
67699be876
9 changed files with 201 additions and 0 deletions
16
am/include/arch/loongarch32r-nemu.h
Normal file
16
am/include/arch/loongarch32r-nemu.h
Normal file
|
@ -0,0 +1,16 @@
|
|||
#ifndef __ARCH_H__
|
||||
#define __ARCH_H__
|
||||
|
||||
struct Context {
|
||||
// TODO: fix the order of these members to match trap.S
|
||||
uintptr_t gpr[32], era, estat, prmd;
|
||||
void *pdir;
|
||||
};
|
||||
|
||||
#define GPR1 gpr[11] // a7
|
||||
#define GPR2 gpr[0]
|
||||
#define GPR3 gpr[0]
|
||||
#define GPR4 gpr[0]
|
||||
#define GPRx gpr[0]
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue