yield ldst.priv_mode.eq(0)
yield ldst.instr_fault.eq(1)
yield ldst.maddr.eq(virt_addr)
- #ld_data, exctype, exc = yield from pi_ld(pi, virt_addr, 8, msr_pr=1)
+ #ld_data, exctype, exc = yield from pi_ld(pi, virt_addr, 8, msr_pr=0)
yield
yield ldst.instr_fault.eq(0)
while True:
print("=== test invalid ===")
addr = 0
- msr = MSRSpec(pr=1, dr=0, sf=0)
+ msr = MSRSpec(pr=1, dr=0, sf=0) # set problem-state
ld_data, exctype, exc = yield from pi_ld(pi, addr, 8, msr=msr)
print("ld_data", ld_data, exctype, exc)
assert (exctype == "slow")
data = 0xf553b658ba7e1f51
if test_dcbz:
- msr = MSRSpec(pr=1, dr=0, sf=0)
+ msr = MSRSpec(pr=0, dr=0, sf=0)
yield from pi_st(pi, addr, data, 8, msr=msr)
yield
if __name__ == '__main__':
test_loadstore1()
- #test_loadstore1_invalid()
- #test_loadstore1_ifetch()
- #test_loadstore1_ifetch_invalid()
- #test_loadstore1_ifetch_multi()
- #test_loadstore1_ifetch_unit_iface()
+ test_loadstore1_invalid()
+ test_loadstore1_ifetch()
+ test_loadstore1_ifetch_invalid()
+ test_loadstore1_ifetch_multi()
+ test_loadstore1_ifetch_unit_iface()