From d3e54fee8702c10b6376e2fc42095186f10c9007 Mon Sep 17 00:00:00 2001 From: Tobias Platen Date: Mon, 13 Dec 2021 14:40:39 +0100 Subject: [PATCH] update MMU PortInterface Test (misalign) --- src/soc/experiment/test/test_ldst_pi_misalign.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/soc/experiment/test/test_ldst_pi_misalign.py b/src/soc/experiment/test/test_ldst_pi_misalign.py index 96479bdc..c3faa85e 100644 --- a/src/soc/experiment/test/test_ldst_pi_misalign.py +++ b/src/soc/experiment/test/test_ldst_pi_misalign.py @@ -27,6 +27,8 @@ from nmigen.compat.sim import run_simulation from openpower.test.wb_get import wb_get from openpower.test import wb_get as wbget +msr_default = MSRSpec(pr=1, dr=0, sf=1) # 64 bit by default + wbget.stop = False @@ -76,21 +78,21 @@ def ldst_sim_misalign(dut): # load 8 bytes at aligned address align_addr = 0x1000 data, exctype, exc = yield from pi_ld(dut.submodules.ldst.pi, - align_addr, 8, msr_pr=1) + align_addr, 8, msr=msr_default) print ("ldst_sim_misalign (aligned)", hex(data), exctype, exc) assert data == 0xdeadbeef01234567 # load 4 bytes at aligned address align_addr = 0x1004 data, exctype, exc = yield from pi_ld(dut.submodules.ldst.pi, - align_addr, 4, msr_pr=1) + align_addr, 4, msr=msr_default) print ("ldst_sim_misalign (aligned)", hex(data), exctype, exc) assert data == 0xdeadbeef # load 8 bytes at *mis*-aligned address misalign_addr = 0x1004 data, exctype, exc = yield from pi_ld(dut.submodules.ldst.pi, - misalign_addr, 8, msr_pr=1) + misalign_addr, 8, msr=msr_default) print ("ldst_sim_misalign", data, exctype, exc) yield dar = yield dut.submodules.ldst.dar -- 2.30.2