From: Tobias Platen Date: Mon, 26 Jul 2021 18:42:21 +0000 (+0200) Subject: compldst_multi: add debug output for dcbz X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1c2b06a150f9d15dd5ec02424f118024aaa7ce48;hp=9c58fe8b3ccce5123f5119d381ecc96f5152c119;p=soc.git compldst_multi: add debug output for dcbz --- 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)