> compile NEMU

ysyx_22040000 李心杨
Linux calcite 6.6.19 #1-NixOS SMP PREEMPT_DYNAMIC Fri Mar  1 12:35:11 UTC 2024 x86_64 GNU/Linux
 12:28:16  up  22:03,  2 users,  load average: 0.36, 0.46, 0.76
This commit is contained in:
tracer-ysyx 2024-03-26 12:28:16 +08:00 committed by xinyangli
parent 5d03e68517
commit 17c514fca5

View file

@ -119,6 +119,6 @@ void ftrace_return(vaddr_t pc, vaddr_t addr) {
}
func_t *f = get_func(addr);
Trace("%*s0x%x ret 0x%x <%s+0x%x>", ftrace_stack_len, "", pc, addr,
f == NULL ? "???" : f->name, addr - f->start);
f == NULL ? "???" : f->name, f == NULL ? addr : addr - f->start);
}
#endif