riscv64-mycpu: pass compilation of am-tests
This commit is contained in:
parent
07eb9ba416
commit
01d76dd0d5
6 changed files with 152 additions and 1 deletions
|
@ -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 epc, cause, gpr[32], status;
|
||||
};
|
||||
|
||||
#define GPR1 gpr[0]
|
||||
#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