From 61b4a4a6115ae72631a9b86ad0cbef7ee3b75060 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 13 Dec 2021 13:08:53 +0000 Subject: [PATCH] fix up pr/dr/sf in PortInterfaceBase --- src/soc/experiment/pimem.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/soc/experiment/pimem.py b/src/soc/experiment/pimem.py index 58f6c4e8..52605a14 100644 --- a/src/soc/experiment/pimem.py +++ b/src/soc/experiment/pimem.py @@ -225,8 +225,8 @@ class PortInterfaceBase(Elaboratable): # TODO: construct an MSRspec here and pass it over in # self.set_rd_addr and set_wr_addr below rather than just pr pr = ~pi.priv_mode - dr = pi.virt_mode # not yet used - sf = pi.mode_32bit # not yet used + dr = pi.virt_mode + sf = ~pi.mode_32bit msr = MSRSpec(pr=pr, dr=dr, sf=sf) # detect busy "edge" -- 2.30.2