remove qemu co-simulation, dump output expected results
[openpower-isa.git] / src / test / basic_pypowersim / Makefile
1 TOOLCHAIN=powerpc64le-linux-gnu
2 CC=$(TOOLCHAIN)-gcc
3 AS=$(TOOLCHAIN)-as
4 AFLAGS=-mpwr9
5
6 all: sim
7
8 sim: kernel.bin
9 echo -n -e \\0060\\0000\\0061\\0000 > test.bin
10 echo -n -e \\0060\\0000\\0061\\0000 >> test.bin
11 pypowersim --load test.bin:0 \
12 -p 0x20000000 \
13 --dump testout.bin:0:8 \
14 --dump testout2.bin:0x20000100:8 \
15 -g gpr.list -i kernel.bin
16 @echo 'expected results:'
17 @echo '00000000 ef be ad de ff ff ff ff'
18 hexdump -C testout2.bin
19
20 clean:
21 rm *.o *.elf *.bin
22
23 kernel.elf: test.o
24 $(TOOLCHAIN)-ld $^ -EL -o $@ -T memmap
25
26 kernel.bin: kernel.elf
27 $(TOOLCHAIN)-objcopy $< -I elf64-little -O binary $@
28
29 %.o: %.s
30 $(AS) $(AFLAGS) -c $< -le -o $@