sigh, initialise FPRs to zeros to engage FP decode
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 24 May 2021 10:48:23 +0000 (11:48 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 24 May 2021 10:48:23 +0000 (11:48 +0100)
src/openpower/decoder/isa/pypowersim.py

index 83831a66446ee18fa55401c0c7e4bbb0392c5ce1..f1577eb723c89a542dc794512fd0bfe5e7879058 100644 (file)
@@ -145,8 +145,8 @@ def help():
 def run_simulation():
 
     binaryname = None
-    initial_regs = None
-    initial_fprs = None
+    initial_regs = [0]*32
+    initial_fprs = [0]*32
     initial_sprs = None
     initial_mem = {}
     lst = None