From: Luke Kenneth Casson Leighton Date: Sat, 19 Jun 2021 18:57:36 +0000 (+0100) Subject: increase number of registers to 128 in pypowersim X-Git-Tag: xlen-bcd~425 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=599b929357860f3cb14a95621d6c5713c4479a37;p=openpower-isa.git increase number of registers to 128 in pypowersim --- 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']: