pysvp64db: fix traversal
[openpower-isa.git] / src / test / basic_pypowersim / Makefile
index bcce302cd7fc67df80700dd4061be68bedbf5c73..fef3ba1355f6d29d5a57678246fe5bd14412a1ce 100644 (file)
@@ -1,4 +1,4 @@
-TOOLCHAIN=powerpc64-linux-gnu
+TOOLCHAIN=powerpc64le-linux-gnu
 CC=$(TOOLCHAIN)-gcc
 AS=$(TOOLCHAIN)-as
 AFLAGS=-mpwr9
@@ -6,9 +6,15 @@ 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
-       pypowersim -q --load test.bin:0 -g gpr.list -i kernel.bin
+       ./writeint.sh
+       pypowersim --load test.bin:0 \
+                     -p 0x20000000 \
+                  --dump testout.bin:0:8 \
+                  --dump testout2.bin:0x20000100:8 \
+                -g gpr.list -i kernel.bin
+       @echo 'expected results:'
+       @echo '00000000  ef be ad de ff ff ff ff'
+       hexdump -C testout2.bin
 
 clean:
        rm *.o *.elf *.bin