add riscv64-nemu

This commit is contained in:
Zihao Yu 2021-05-03 16:51:02 +08:00
parent e4e5d03fa6
commit 11059d5b6f
11 changed files with 227 additions and 2 deletions

View 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