> 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
 16:02:50  up   5:38,  2 users,  load average: 0.90, 0.50, 0.38
This commit is contained in:
tracer-ysyx 2024-03-13 16:02:50 +08:00 committed by xinyangli
parent 0f6bc5ab08
commit bdd1069c6e

View file

@ -134,6 +134,7 @@ void cpu_exec(uint64_t n) {
nemu_state.halt_ret = 1;
#ifdef CONFIG_ITRACE
if (nemu_state.halt_ret != 0) {
puts("ITRACE buffer:");
for (int i = (logbuf_rear + 1) % CONFIG_ITRACE_BUFFER; i != logbuf_rear; i = (i + 1) % CONFIG_ITRACE_BUFFER) {
puts(logbuf[i]);
}