Skip to content

Commit 10af979

Browse files
committed
Enable RV32A testing with riscv-arch-test
Modify the setup script to enable RV32A testing in conjunction with riscv-arch-test. With this update, the testing infrastructure is configured to support RV32A tests, enhancing the compatibility and validation capabilities of the environment.
1 parent 6dab01e commit 10af979

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

mk/riscv-arch-test.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ ARCH_TEST_SUITE ?= $(ARCH_TEST_DIR)/riscv-test-suite
33
export RISCV_TARGET := tests/arch-test-target
44
export TARGETDIR := $(shell pwd)
55
export WORK := $(TARGETDIR)/build/arch-test
6-
export RISCV_DEVICE ?= IMCZicsrZifencei
6+
export RISCV_DEVICE ?= IMACFZicsrZifencei
77

88
ifeq ($(RISCV_DEVICE),FCZicsr)
99
ARCH_TEST_SUITE := tests/rv32fc-test-suite

tests/arch-test-target/constants.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
root = os.path.abspath(os.path.dirname(__file__))
77
cwd = os.getcwd()
88

9+
misa_A = (1 << 0)
910
misa_C = (1 << 2)
1011
misa_F = (1 << 5)
1112
misa_M = (1 << 12)

tests/arch-test-target/setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ def setup_testlist(riscv_device):
1515
if 'M' in riscv_device:
1616
misa |= constants.misa_M
1717
ISA += 'M'
18+
if 'A' in riscv_device:
19+
misa |= constants.misa_A
20+
ISA += 'A'
1821
if 'F' in riscv_device:
1922
misa |= constants.misa_F
2023
ISA += 'F'
@@ -55,7 +58,7 @@ def setup_config():
5558
if __name__=="__main__":
5659
parser = argparse.ArgumentParser()
5760
parser.add_argument('--riscv_device', help='the ISA will test',
58-
default='IMCZicsrZifencei')
61+
default='IMACZicsrZifencei')
5962
args = parser.parse_args()
6063

6164
setup_testlist(args.riscv_device)

0 commit comments

Comments
 (0)