From 1c2b06a150f9d15dd5ec02424f118024aaa7ce48 Mon Sep 17 00:00:00 2001 From: Tobias Platen Date: Mon, 26 Jul 2021 20:42:21 +0200 Subject: [PATCH] compldst_multi: add debug output for dcbz --- src/soc/experiment/compldst_multi.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/soc/experiment/compldst_multi.py b/src/soc/experiment/compldst_multi.py index 7dfdb15e..79b7a1c6 100644 --- a/src/soc/experiment/compldst_multi.py +++ b/src/soc/experiment/compldst_multi.py @@ -97,6 +97,9 @@ from soc.fu.ldst.ldst_input_record import CompLDSTOpSubset from openpower.decoder.power_decoder2 import Data from openpower.consts import MSR +# for debugging dcbz +from nmutil.util import Display + # TODO: LDSTInputData and LDSTOutputData really should be used # here, to make things more like the other CompUnits. currently, @@ -313,6 +316,8 @@ class LDSTCompUnit(RegSpecAPI, Elaboratable): oper_r = CompLDSTOpSubset(name="oper_r") # Dest register comb += op_is_st.eq(oper_r.insn_type == MicrOp.OP_STORE) # ST comb += op_is_ld.eq(oper_r.insn_type == MicrOp.OP_LOAD) # LD + comb += Display("compldst_multi: op_is_dcbz = %i", + (oper_r.insn_type == MicrOp.OP_DCBZ)) op_is_update = oper_r.ldst_mode == LDSTMode.update # UPDATE op_is_cix = oper_r.ldst_mode == LDSTMode.cix # cache-inhibit comb += self.load_mem_o.eq(op_is_ld & self.go_ad_i) -- 2.30.2