sim: compliance_test: fix can not find ref file

Signed-off-by: liangkangnan <liangkangnan@163.com>
pull/1/head
liangkangnan 2020-06-05 22:16:36 +08:00
parent 69484de8b2
commit c3e607ec55
1 changed files with 3 additions and 3 deletions

View File

@ -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):