From: Jacob Lifshay Date: Fri, 30 Sep 2022 01:44:23 +0000 (-0700) Subject: allow logging function to be overridden for Mem.log_fancy X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8d04dd0537547bd4243762d74047ec7d90c1173b;p=openpower-isa.git allow logging function to be overridden for Mem.log_fancy --- diff --git a/src/openpower/decoder/isa/mem.py b/src/openpower/decoder/isa/mem.py index 6e222627..9132c357 100644 --- a/src/openpower/decoder/isa/mem.py +++ b/src/openpower/decoder/isa/mem.py @@ -153,7 +153,7 @@ class Mem: return res def log_fancy(self, *, kind=LogKind.Default, name="Memory", - log2_line_size=4, log2_column_chunk_size=3): + log2_line_size=4, log2_column_chunk_size=3, log=log): line_size = 1 << log2_line_size subline_mask = line_size - 1 column_chunk_size = 1 << log2_column_chunk_size