> 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:01:42  up   5:37,  2 users,  load average: 0.39, 0.36, 0.33
This commit is contained in:
tracer-ysyx 2024-03-13 16:01:42 +08:00 committed by xinyangli
parent 7e1535e3ba
commit 0f6bc5ab08

View file

@ -131,6 +131,7 @@ void cpu_exec(uint64_t n) {
(nemu_state.halt_ret == 0 ? ANSI_FMT("HIT GOOD TRAP", ANSI_FG_GREEN) :
ANSI_FMT("HIT BAD TRAP", ANSI_FG_RED))),
nemu_state.halt_pc);
nemu_state.halt_ret = 1;
#ifdef CONFIG_ITRACE
if (nemu_state.halt_ret != 0) {
for (int i = (logbuf_rear + 1) % CONFIG_ITRACE_BUFFER; i != logbuf_rear; i = (i + 1) % CONFIG_ITRACE_BUFFER) {