NJU-ProjectN/abstract-machine ics2023 initialized
NJU-ProjectN/abstract-machine 3348db971fd860be5cb28e21c18f9d0e65d0c96a Merge pull request #8 from Jasonyanyusong/master
This commit is contained in:
parent
2824efad33
commit
8e4feb4010
129 changed files with 9017 additions and 0 deletions
21
abstract-machine/am/include/arch/x86_64-qemu.h
Normal file
21
abstract-machine/am/include/arch/x86_64-qemu.h
Normal file
|
@ -0,0 +1,21 @@
|
|||
#ifndef ARCH_H__
|
||||
#define ARCH_H__
|
||||
|
||||
struct Context {
|
||||
void *cr3;
|
||||
uint64_t rax, rbx, rcx, rdx,
|
||||
rbp, rsi, rdi,
|
||||
r8, r9, r10, r11,
|
||||
r12, r13, r14, r15,
|
||||
rip, cs, rflags,
|
||||
rsp, ss, rsp0;
|
||||
};
|
||||
|
||||
|
||||
#define GPR1 rdi
|
||||
#define GPR2 rsi
|
||||
#define GPR3 rdx
|
||||
#define GPR4 rcx
|
||||
#define GPRx rax
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue