From: Lauri Kasanen Date: Tue, 25 May 2021 12:57:52 +0000 (+0300) Subject: Use log in pypowersim, add counter TODO in help X-Git-Tag: xlen-bcd~554 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e66995b776157f28a768b3284175db2b402da771;p=openpower-isa.git Use log in pypowersim, add counter TODO in help --- diff --git a/src/openpower/decoder/isa/pypowersim.py b/src/openpower/decoder/isa/pypowersim.py index 7bb61f96..0a973541 100644 --- a/src/openpower/decoder/isa/pypowersim.py +++ b/src/openpower/decoder/isa/pypowersim.py @@ -9,6 +9,7 @@ from openpower.simulator.program import Program from openpower.decoder.selectable_int import SelectableInt from openpower.decoder.orderedset import OrderedSet from openpower.decoder.isa.all import ISA +from openpower.util import log def read_data(fname, offset=0): @@ -19,7 +20,7 @@ def read_data(fname, offset=0): with open(fname, "rb") as f: while True: b = f.read(8) - print (repr(b)) + log (repr(b)) if not b: return res res[offset] = struct.unpack('