add predicated srcstep
[openpower-isa.git] / src / test / basic_pypowersim_fp / 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 ./writefp.sh
10 pypowersim -q --load testin.bin:0 \
11 -p 0x20000000 \
12 --dump testout.bin:0x20000100:32 \
13 --dump testout2.bin:0x0:32 \
14 -g gpr.list -f fpr.list -i kernel.bin
15
16 clean:
17 rm *.o *.elf *.bin
18
19 kernel.elf: testfp.o
20 $(TOOLCHAIN)-ld $^ -EL -o $@ -T memmap
21
22 kernel.bin: kernel.elf
23 $(TOOLCHAIN)-objcopy $< -I elf64-little -O binary $@
24
25 %.o: %.s
26 $(AS) $(AFLAGS) -c $< -le -o $@