From: Luke Kenneth Casson Leighton Date: Tue, 25 May 2021 10:21:08 +0000 (+0100) Subject: add dump-out option to pypowersim X-Git-Tag: xlen-bcd~558 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a1c8ae97b7e1edbce91a71883be3253a5db06542;p=openpower-isa.git add dump-out option to pypowersim --- diff --git a/src/openpower/decoder/isa/pypowersim.py b/src/openpower/decoder/isa/pypowersim.py index 767344f2..e61e7d7f 100644 --- a/src/openpower/decoder/isa/pypowersim.py +++ b/src/openpower/decoder/isa/pypowersim.py @@ -25,6 +25,15 @@ def read_data(fname, offset=0): res[offset] = struct.unpack(' test.bin echo -n -e \\0060\\0000\\0061\\0000 >> test.bin - pypowersim --load test.bin:0 -g gpr.list -i kernel.bin + pypowersim --load test.bin:0 \ + --dump testout.bin:0x20000100:8 \ + --dump testout2.bin:0x0:16 \ + -g gpr.list -i kernel.bin clean: rm *.o *.elf *.bin