From c3e607ec55de7d0b589febc6585932d914a32825 Mon Sep 17 00:00:00 2001 From: liangkangnan Date: Fri, 5 Jun 2020 22:16:36 +0800 Subject: [PATCH] sim: compliance_test: fix can not find ref file Signed-off-by: liangkangnan --- sim/compliance_test/compliance_test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sim/compliance_test/compliance_test.py b/sim/compliance_test/compliance_test.py index 5980a7c..03e2920 100644 --- a/sim/compliance_test/compliance_test.py +++ b/sim/compliance_test/compliance_test.py @@ -67,10 +67,10 @@ def get_reference_file(bin_file): #print('bin prefix: %s' % prefix) files = [] - if (bin_file.find('rv32i') != -1): - files = list_ref_files(r'..\..\tests\riscv-compliance\riscv-test-suite\rv32i\references') - elif (bin_file.find('rv32im') != -1): + if (bin_file.find('rv32im') != -1): files = list_ref_files(r'..\..\tests\riscv-compliance\riscv-test-suite\rv32im\references') + elif (bin_file.find('rv32i') != -1): + files = list_ref_files(r'..\..\tests\riscv-compliance\riscv-test-suite\rv32i\references') elif (bin_file.find('rv32Zicsr') != -1): files = list_ref_files(r'..\..\tests\riscv-compliance\riscv-test-suite\rv32Zicsr\references') elif (bin_file.find('rv32Zifencei') != -1):