ylin@Ylin:~/ics2025/nemu$ make menuconfig /home/ylin/ics2025/nemu/scripts/config.mk:20: Warning: .config does not exist! /home/ylin/ics2025/nemu/scripts/config.mk:21: To build the project, first run 'make menuconfig'. + CC confdata.c + CC expr.c + CC preprocess.c + CC symbol.c + CC util.c + YACC build/parser.tab.h + LEX build/lexer.lex.c + CC build/lexer.lex.c + CC build/parser.tab.c + CC mconf.c + CC lxdialog/inputbox.c + CC lxdialog/yesno.c + CC lxdialog/textbox.c + CC lxdialog/checklist.c + CC lxdialog/util.c + CC lxdialog/menubox.c + LD /home/ylin/ics2025/nemu/tools/kconfig/build/mconf + CC confdata.c + CC expr.c + CC preprocess.c + CC symbol.c + CC util.c + CC build/lexer.lex.c + CC build/parser.tab.c + CC conf.c + LD /home/ylin/ics2025/nemu/tools/kconfig/build/conf + CC fixdep.c + LD /home/ylin/ics2025/nemu/tools/fixdep/build/fixdep
*** End of the configuration. *** Execute 'make' to start the build or try 'make help'.
ylin@Ylin:~/ics2025/nemu$ make run /home/ylin/ics2025/nemu/build/riscv32-nemu-interpreter --log=/home/ylin/ics2025/nemu/build/nemu-log.txt [src/utils/log.c:30 init_log] Log is written to /home/ylin/ics2025/nemu/build/nemu-log.txt [src/memory/paddr.c:50 init_mem] physical memory area [0x80000000, 0x87ffffff] [src/monitor/monitor.c:51 load_img] No image is given. Use the default build-in image. [src/monitor/monitor.c:28 welcome] Trace: ON [src/monitor/monitor.c:29 welcome] If trace is enabled, a log file will be generated to record the trace. This may lead to a large log file. If it is not necessary, you can disable it in menuconfig [src/monitor/monitor.c:32 welcome] Build time: 20:05:51, Sep 26 2025 Welcome to riscv32-NEMU! For help, type "help" [src/monitor/monitor.c:35 welcome] Exercise: Please remove me in the source code and compile NEMU again. riscv32-nemu-interpreter: src/monitor/monitor.c:36: welcome: Assertion `0' failed. make: *** [/home/ylin/ics2025/nemu/scripts/native.mk:38: run] Aborted (core dumped)
staticvoidwelcome() { Log("Trace: %s", MUXDEF(CONFIG_TRACE, ANSI_FMT("ON", ANSI_FG_GREEN), ANSI_FMT("OFF", ANSI_FG_RED))); IFDEF(CONFIG_TRACE, Log("If trace is enabled, a log file will be generated " "to record the trace. This may lead to a large log file. " "If it is not necessary, you can disable it in menuconfig")); Log("Build time: %s, %s", __TIME__, __DATE__); printf("Welcome to %s-NEMU!\n", ANSI_FMT(str(__GUEST_ISA__), ANSI_FG_YELLOW ANSI_BG_RED)); printf("For help, type \"help\"\n"); // Log("Exercise: Please remove me in the source code and compile NEMU again."); // assert(0); }