convert basic_pypowersim to hex rather than broken octal (?)
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 27 Sep 2023 15:19:32 +0000 (16:19 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 30 Sep 2023 13:36:32 +0000 (14:36 +0100)
src/test/basic_pypowersim/Makefile
src/test/basic_pypowersim/writeint.sh [new file with mode: 0755]

index 8f047743dc5245dc1ec4c1b451b8b005d5f4daab..fef3ba1355f6d29d5a57678246fe5bd14412a1ce 100644 (file)
@@ -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 (executable)
index 0000000..03f9864
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/bash
+echo -n -e '\x60\x00\x61\x00' > test.bin
+echo -n -e '\x60\x00\x61\x00' >> test.bin