> 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:
parent
c34f132985
commit
f1ade93f9a
2 changed files with 1 additions and 1 deletions
|
@ -38,6 +38,7 @@
|
||||||
MUXDEF(CONFIG_TARGET_AM, printf(ANSI_FMT(format, ANSI_FG_RED) "\n", ## __VA_ARGS__), \
|
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__))); \
|
(fflush(stdout), fprintf(stderr, ANSI_FMT(format, ANSI_FG_RED) "\n", ## __VA_ARGS__))); \
|
||||||
IFNDEF(CONFIG_TARGET_AM, extern FILE* log_fp; fflush(log_fp)); \
|
IFNDEF(CONFIG_TARGET_AM, extern FILE* log_fp; fflush(log_fp)); \
|
||||||
|
IFDEF(CONFIG_ITRACE, log_itrace_print()); \
|
||||||
extern void assert_fail_msg(); \
|
extern void assert_fail_msg(); \
|
||||||
assert_fail_msg(); \
|
assert_fail_msg(); \
|
||||||
assert(cond); \
|
assert(cond); \
|
||||||
|
|
|
@ -131,7 +131,6 @@ void cpu_exec(uint64_t n) {
|
||||||
(nemu_state.halt_ret == 0 ? ANSI_FMT("HIT GOOD TRAP", ANSI_FG_GREEN) :
|
(nemu_state.halt_ret == 0 ? ANSI_FMT("HIT GOOD TRAP", ANSI_FG_GREEN) :
|
||||||
ANSI_FMT("HIT BAD TRAP", ANSI_FG_RED))),
|
ANSI_FMT("HIT BAD TRAP", ANSI_FG_RED))),
|
||||||
nemu_state.halt_pc);
|
nemu_state.halt_pc);
|
||||||
nemu_state.halt_ret = 1;
|
|
||||||
if(nemu_state.halt_ret != 0) {
|
if(nemu_state.halt_ret != 0) {
|
||||||
log_itrace_print();
|
log_itrace_print();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue