From 1af1dbcd20abe5ce696db9f991fbf29d20ad3804 Mon Sep 17 00:00:00 2001 From: xinyangli Date: Thu, 11 Jan 2024 17:29:23 +0800 Subject: [PATCH] fix: always false assertion --- nemu/flake.nix | 2 +- nemu/src/monitor/monitor.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/nemu/flake.nix b/nemu/flake.nix index 309965d..3ecac03 100644 --- a/nemu/flake.nix +++ b/nemu/flake.nix @@ -26,7 +26,7 @@ gtkwave ]; - inputsFrom = [ self.packages.${system}.default ]; + inputsFrom = [ self.packages.${system}.nemu ]; }; packages.nemu = with pkgs; stdenv.mkDerivation rec { diff --git a/nemu/src/monitor/monitor.c b/nemu/src/monitor/monitor.c index acaed1b..2279ca0 100644 --- a/nemu/src/monitor/monitor.c +++ b/nemu/src/monitor/monitor.c @@ -32,8 +32,6 @@ static void welcome() { 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); } #ifndef CONFIG_TARGET_AM