> 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:11:34  up   5:47,  2 users,  load average: 0.51, 0.72, 0.55
This commit is contained in:
tracer-ysyx 2024-03-13 16:11:34 +08:00 committed by xinyangli
parent c34f132985
commit f1ade93f9a
2 changed files with 1 additions and 1 deletions

View file

@ -38,6 +38,7 @@
MUXDEF(CONFIG_TARGET_AM, printf(ANSI_FMT(format, ANSI_FG_RED) "\n", ## __VA_ARGS__), \
(fflush(stdout), fprintf(stderr, ANSI_FMT(format, ANSI_FG_RED) "\n", ## __VA_ARGS__))); \
IFNDEF(CONFIG_TARGET_AM, extern FILE* log_fp; fflush(log_fp)); \
IFDEF(CONFIG_ITRACE, log_itrace_print()); \
extern void assert_fail_msg(); \
assert_fail_msg(); \
assert(cond); \

View file

@ -131,7 +131,6 @@ 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;
if(nemu_state.halt_ret != 0) {
log_itrace_print();
}