From d84c5022bd3656353e3dddb5a0237a596e0d49ad Mon Sep 17 00:00:00 2001 From: Konstantin Nazarov Date: Sun, 15 Dec 2024 15:01:19 +0000 Subject: [PATCH] Make riscof test suite actually compile the test binaries --- test/rve/riscof_rve.py | 2 +- test/sail_cSim/riscof_sail_cSim.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/rve/riscof_rve.py b/test/rve/riscof_rve.py index 0f20719..991c2f3 100644 --- a/test/rve/riscof_rve.py +++ b/test/rve/riscof_rve.py @@ -62,7 +62,7 @@ class rve(pluginTemplate): # Note the march is not hardwired here, because it will change for each # test. Similarly the output elf name and compile macros will be assigned later in the # runTests function - self.compile_cmd = 'riscv{1}-unknown-elf-gcc -march={0} \ + self.compile_cmd = 'riscv{1}-none-elf-gcc -march={0} \ -static -mcmodel=medany -fvisibility=hidden -nostdlib -nostartfiles -g\ -T '+self.pluginpath+'/env/link.ld\ -I '+self.pluginpath+'/env/\ diff --git a/test/sail_cSim/riscof_sail_cSim.py b/test/sail_cSim/riscof_sail_cSim.py index 3ee8659..48565d3 100644 --- a/test/sail_cSim/riscof_sail_cSim.py +++ b/test/sail_cSim/riscof_sail_cSim.py @@ -41,8 +41,8 @@ class sail_cSim(pluginTemplate): def initialise(self, suite, work_dir, archtest_env): self.suite = suite self.work_dir = work_dir - self.objdump_cmd = 'riscv{1}-unknown-elf-objdump -D {0} > {2};' - self.compile_cmd = 'riscv{1}-unknown-elf-gcc -march={0} \ + self.objdump_cmd = 'riscv{1}-none-elf-objdump -D {0} > {2};' + self.compile_cmd = 'riscv{1}-none-elf-gcc -march={0} \ -static -mcmodel=medany -fvisibility=hidden -nostdlib -nostartfiles\ -T '+self.pluginpath+'/env/link.ld\ -I '+self.pluginpath+'/env/\ @@ -63,11 +63,11 @@ class sail_cSim(pluginTemplate): self.isa += 'f' if "D" in ispec["ISA"]: self.isa += 'd' - objdump = "riscv{0}-unknown-elf-objdump".format(self.xlen) + objdump = "riscv{0}-none-elf-objdump".format(self.xlen) if shutil.which(objdump) is None: logger.error(objdump+": executable not found. Please check environment setup.") raise SystemExit(1) - compiler = "riscv{0}-unknown-elf-gcc".format(self.xlen) + compiler = "riscv{0}-none-elf-gcc".format(self.xlen) if shutil.which(compiler) is None: logger.error(compiler+": executable not found. Please check environment setup.") raise SystemExit(1)