add riscv64-nemu
This commit is contained in:
parent
e4e5d03fa6
commit
11059d5b6f
11 changed files with 227 additions and 2 deletions
15
am/include/arch/riscv64-nemu.h
Normal file
15
am/include/arch/riscv64-nemu.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
#ifndef ARCH_H__
|
||||
#define ARCH_H__
|
||||
|
||||
struct Context {
|
||||
uintptr_t epc, cause, gpr[32], status;
|
||||
void *pdir;
|
||||
};
|
||||
|
||||
#define GPR1 gpr[17] // 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