From 97e23b81c9e0e0ab914f7d9ff00556df19bb54dd Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 27 Sep 2023 16:19:32 +0100 Subject: [PATCH] convert basic_pypowersim to hex rather than broken octal (?) --- src/test/basic_pypowersim/Makefile | 3 +-- src/test/basic_pypowersim/writeint.sh | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100755 src/test/basic_pypowersim/writeint.sh 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 -- 2.30.2