> 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
 20:34:29 up 7 days,  5:32,  1 user,  load average: 1.64, 0.86, 0.51
This commit is contained in:
tracer-ics2023
2024-09-24 20:34:32 +08:00
committed by zzy
parent 95b4a7e092
commit d8437e172f
2 changed files with 1 additions and 2 deletions

View File

@ -33,7 +33,7 @@ void do_syscall(Context *c) {
CASE(lseek, c->GPRx = fs_lseek((int)a[1], (size_t)a[2], (int)a[3]))
CASE(close, c->GPRx = fs_close((int)a[1]))
CASE(gettimeofday, c->GPRx = io_read(AM_TIMER_UPTIME).us)
CASE(gettimeofday, c->GPRx = _gettimeofday((struct timeval*)a[1], (struct timezone*)a[2]))
CASE(brk, c->GPRx = _brk((void*)a[1]))
CASE(exit, halt(0))

View File

@ -10,7 +10,6 @@ int main(void) {
gettimeofday(&t, NULL);
time = t.tv_usec;
if (time - prev >= 500000) {
prev = time;
printf("Hello World\n");
}
}