From 574043ede5915fae9ab6f439b68ebfe94930dccd Mon Sep 17 00:00:00 2001 From: tracer-ysyx Date: Wed, 6 Mar 2024 11:46:06 +0800 Subject: [PATCH] =?UTF-8?q?>=20compile=20NEMU=20ysyx=5F22040000=20?= =?UTF-8?q?=E6=9D=8E=E5=BF=83=E6=9D=A8=20Linux=20calcite=206.6.18=20#1-Nix?= =?UTF-8?q?OS=20SMP=20PREEMPT=5FDYNAMIC=20Fri=20Feb=2023=2008:25:28=20UTC?= =?UTF-8?q?=202024=20x86=5F64=20GNU/Linux=20=2011:46:06=20=20up=201=20day?= =?UTF-8?q?=2015:14,=20=202=20users,=20=20load=20average:=200.54,=200.67,?= =?UTF-8?q?=200.53?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nemu/1 | 8 ++++---- nemu/Makefile | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/nemu/1 b/nemu/1 index 05e6717..24db142 100644 --- a/nemu/1 +++ b/nemu/1 @@ -167,9 +167,9 @@ If it is the second case, remember: 0x80000068: 02 f7 66 33 rem a2, a4, a5 [INFO] src/cpu/cpu-exec.c:125 cpu_exec() nemu: ABORT at pc = 0x80000068 [INFO] src/cpu/cpu-exec.c:125 cpu_exec() nemu: ABORT at pc = 0x80000068 -[INFO] src/cpu/cpu-exec.c:93 statistic() host time spent = 386 us -[INFO] src/cpu/cpu-exec.c:93 statistic() host time spent = 386 us +[INFO] src/cpu/cpu-exec.c:93 statistic() host time spent = 369 us +[INFO] src/cpu/cpu-exec.c:93 statistic() host time spent = 369 us [INFO] src/cpu/cpu-exec.c:94 statistic() total guest instructions = 123 [INFO] src/cpu/cpu-exec.c:94 statistic() total guest instructions = 123 -[INFO] src/cpu/cpu-exec.c:95 statistic() simulation frequency = 318,652 inst/s -[INFO] src/cpu/cpu-exec.c:95 statistic() simulation frequency = 318,652 inst/s +[INFO] src/cpu/cpu-exec.c:95 statistic() simulation frequency = 333,333 inst/s +[INFO] src/cpu/cpu-exec.c:95 statistic() simulation frequency = 333,333 inst/s diff --git a/nemu/Makefile b/nemu/Makefile index 364674e..98999b6 100644 --- a/nemu/Makefile +++ b/nemu/Makefile @@ -80,12 +80,12 @@ $(shell > $(RESULT)) # Clear result file $(IMAGES): %: %.bin $(BINARY) @echo + TEST $(notdir $<) - @$(BINARY) -b $< >/dev/null 2&>1 || printf "%14s\n" $(notdir $<) >> $(RESULT) + @$(BINARY) -b $< >/dev/null 2&>1 || printf "\t%14s\n" $(notdir $<) >> $(RESULT) integration-tests: $(IMAGES) + @printf "Test result:\n ALL: %s, FAILED: %s\n" $(words $(IMAGES)) $(shell wc -l $(RESULT) | cut -f1 -d' ') @printf "$(COLOR_RED)FAILED:$(COLOR_NONE)\n" @cat $(RESULT) - @printf "Test result:\n ALL: %s, FAILED: %s\n" $(words $(IMAGES)) $(shell wc -l $(RESULT) | cut -f1 -d' ') @$(RM) $(RESULT) test: unit-tests integration-tests