> compile NEMU

221220000 张三
Linux zzy 5.15.146.1-microsoft-standard-WSL2 #1 SMP Thu Jan 11 04:09:03 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
 15:13:09 up 8 days,  2:56,  1 user,  load average: 0.19, 0.22, 0.30
This commit is contained in:
tracer-ics2023
2024-09-26 15:13:09 +08:00
committed by zzy
parent d70dfdcf03
commit 6641d886aa

View File

@ -44,7 +44,7 @@ void do_syscall(Context *c) {
CASE(gettimeofday, c->GPRx = _gettimeofday((struct timeval*)a[1], (struct timezone*)a[2]))
CASE(execve, c->GPRx = _execve((const char*)a[1], (char* const*)a[2], (char* const*)a[3]))
CASE(brk, c->GPRx = _brk((void*)a[1]))
CASE(exit, halt(0))
CASE(exit, _exit((int) a[1]))
default: panic("Unhandled syscall ID = %d", a[0]);
}
}