From 69f6438d8425afbd4eafa3d39aabc90f1fd4a2df Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 1 Jun 2021 14:21:13 +0100 Subject: [PATCH] bizarre, GPR 3 is set by qemu to non-zero at startup. clear all GPRs: set to zero --- src/openpower/simulator/qemu.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/openpower/simulator/qemu.py b/src/openpower/simulator/qemu.py index 9e1b6f6a..a9eb2954 100644 --- a/src/openpower/simulator/qemu.py +++ b/src/openpower/simulator/qemu.py @@ -306,8 +306,7 @@ def run_program(program, initial_mem=None, extra_break_addr=None, # upload regs if initial_regs: for i, reg in enumerate(initial_regs): - if reg != 0: - q.set_gpr(i, reg) + q.set_gpr(i, reg) if initial_fprs: if isinstance(initial_fprs, dict): for i, reg in initial_fprs.items(): -- 2.30.2