From a1c8ae97b7e1edbce91a71883be3253a5db06542 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 25 May 2021 11:21:08 +0100 Subject: [PATCH] add dump-out option to pypowersim --- src/openpower/decoder/isa/pypowersim.py | 46 +++++++++++++++++++++---- src/test/basic_pypowersim/Makefile | 5 ++- 2 files changed, 44 insertions(+), 7 deletions(-) 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 -- 2.30.2