> 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
 19:23:36  up   6:29,  2 users,  load average: 0.48, 0.28, 0.35
This commit is contained in:
tracer-ysyx 2024-03-20 19:23:36 +08:00 committed by xinyangli
parent aa07f79378
commit 4c3201b8e7

View file

@ -114,7 +114,8 @@ void ftrace_return(vaddr_t pc, vaddr_t addr) {
--ftrace_stack_len;
for (; addr != ftrace_stack[ftrace_stack_len] && ftrace_stack_len >= 0;
ftrace_stack_len--) {
Trace("%*s0x%x <TCO> [%s@0x%x] ", ftrace_stack_len, "", pc, get_func_name(addr), addr);
vaddr_t tco_addr = ftrace_stack[ftrace_stack_len];
Trace("%*s0x%x <TCO> [%s@0x%x] ", ftrace_stack_len, "", pc, get_func_name(tco_addr), tco_addr);
}
Trace("%*s0x%x ret [%s@0x%x]", ftrace_stack_len, "", pc, get_func_name(addr), addr);
}