diff --git a/nemu/src/cpu/cpu-exec.c b/nemu/src/cpu/cpu-exec.c index 84d87b4..5651c22 100644 --- a/nemu/src/cpu/cpu-exec.c +++ b/nemu/src/cpu/cpu-exec.c @@ -39,7 +39,7 @@ static void trace_and_difftest(Decode *_this, vaddr_t dnpc) { if (g_print_step) { IFDEF(CONFIG_ITRACE, puts(_this->logbuf)); } IFDEF(CONFIG_DIFFTEST, difftest_step(_this->pc, dnpc)); -#ifdef CONFIG_WATCHPOINT +#ifdef CONFIG_CONFIG_WATCHPOINT bool wp_check_hit(void); if (wp_check_hit()) { printf("watchpoint hit\n");