From: Luke Kenneth Casson Leighton Date: Wed, 27 Sep 2023 15:19:32 +0000 (+0100) Subject: convert basic_pypowersim to hex rather than broken octal (?) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=97e23b81c9e0e0ab914f7d9ff00556df19bb54dd;p=openpower-isa.git convert basic_pypowersim to hex rather than broken octal (?) --- diff --git a/src/test/basic_pypowersim/Makefile b/src/test/basic_pypowersim/Makefile index 8f047743..fef3ba13 100644 --- a/src/test/basic_pypowersim/Makefile +++ b/src/test/basic_pypowersim/Makefile @@ -6,8 +6,7 @@ AFLAGS=-mpwr9 all: sim sim: kernel.bin - echo -n -e \\0060\\0000\\0061\\0000 > test.bin - echo -n -e \\0060\\0000\\0061\\0000 >> test.bin + ./writeint.sh pypowersim --load test.bin:0 \ -p 0x20000000 \ --dump testout.bin:0:8 \ diff --git a/src/test/basic_pypowersim/writeint.sh b/src/test/basic_pypowersim/writeint.sh new file mode 100755 index 00000000..03f9864a --- /dev/null +++ b/src/test/basic_pypowersim/writeint.sh @@ -0,0 +1,3 @@ +#!/bin/bash +echo -n -e '\x60\x00\x61\x00' > test.bin +echo -n -e '\x60\x00\x61\x00' >> test.bin