From 599b929357860f3cb14a95621d6c5713c4479a37 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 19 Jun 2021 19:57:36 +0100 Subject: [PATCH] increase number of registers to 128 in pypowersim --- src/openpower/decoder/isa/pypowersim.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/openpower/decoder/isa/pypowersim.py b/src/openpower/decoder/isa/pypowersim.py index 424fa0e2..cb7964fc 100644 --- a/src/openpower/decoder/isa/pypowersim.py +++ b/src/openpower/decoder/isa/pypowersim.py @@ -284,8 +284,8 @@ def help(): def run_simulation(): binaryname = None - initial_regs = [0]*32 - initial_fprs = [0]*32 + initial_regs = [0]*128 + initial_fprs = [0]*128 initial_sprs = None initial_mem = {} initial_pc = 0x0 @@ -316,9 +316,9 @@ def run_simulation(): elif opt in ['-a', '--listing']: lst = arg elif opt in ['-g', '--intregs']: - initial_regs = read_entries(arg, 32) + initial_regs = read_entries(arg, 128) elif opt in ['-f', '--fpregs']: - initial_fprs = read_entries(arg, 32) + initial_fprs = read_entries(arg, 128) elif opt in ['-s', '--sprs']: initial_sprs = read_entries(arg, 32) elif opt in ['-l', '--load']: -- 2.30.2