From 73bc8ba5a6643d98e199e50bceeeee73e60914c7 Mon Sep 17 00:00:00 2001 From: xieby1 Date: Sat, 16 Nov 2024 17:07:56 +0800 Subject: [PATCH] config: as nemu is not deterministic, use qemu as default https://github.com/OpenXiangShan/Deterload/issues/8 --- config.nix | 3 ++- shell.nix | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/config.nix b/config.nix index 0752b67..c44a815 100644 --- a/config.nix +++ b/config.nix @@ -3,7 +3,8 @@ # * https://github.com/llvm/llvm-project/issues/109966 # * https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116064 cc = "gcc13"; - simulator = "nemu"; # nemu or qemu + # TODO: nemu is not deterministic + simulator = "qemu"; # nemu or qemu intervals = 20000000; workload = "miao"; # TODO: remove *_log diff --git a/shell.nix b/shell.nix index 369373d..cf5109c 100755 --- a/shell.nix +++ b/shell.nix @@ -15,8 +15,8 @@ let * Configure by CLI: * `nom-build ... --arg ...` * `nom-build ... --argstr ...` - * E.g: Generate spec2006 checkpoints using given source code, by qemu, in test size: - * `nom-build -A spec2006 --arg src ~/Codes/spec2006.tar.gz --argstr simulator qemu --argstr size test` + * E.g: Generate spec2006 checkpoints using given source code, by nemu, in test size: + * `nom-build -A spec2006 --arg src ~/Codes/spec2006.tar.gz --argstr simulator nemu --argstr size test` * Configure by global config file: edit `./config.nix` * Configure by per-benchmark config file: edit `./benchmarks/*/config.nix`