From b6ecc5f2f1c6aa350b2fdb4d73b6bd410bdab951 Mon Sep 17 00:00:00 2001 From: cheapie Date: Sat, 7 Nov 2026 05:45:09 -0600 Subject: Add Zbc (and by extension, Zbkc) --- assembly/clmultest/Makefile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 assembly/clmultest/Makefile (limited to 'assembly/clmultest/Makefile') diff --git a/assembly/clmultest/Makefile b/assembly/clmultest/Makefile new file mode 100644 index 0000000..c4e7727 --- /dev/null +++ b/assembly/clmultest/Makefile @@ -0,0 +1,24 @@ +MARCH ?= rv32imacbzicntr_zicond_zicsr_zifencei_zihintpause_zilsd_zclsd_zabha_zacas_zbkb_zbkx_zcb_zcmp_zcmt_zicboz_zbc + +.PHONY: all dump load clean + +all: clmultest.hex + +clmultest.o: clmultest.S + riscv32-none-elf-as -I../rvcontroller-libraries -march=${MARCH} -o clmultest.o clmultest.S + +clmultest.elf: clmultest.o + riscv32-none-elf-ld -T rvcontroller.ld --no-warn-rwx-segments -o clmultest.elf clmultest.o + +dump: clmultest.elf + riscv32-none-elf-objdump -d clmultest.elf + +clmultest.hex: clmultest.elf + riscv32-none-elf-objcopy -O ihex clmultest.elf clmultest.hex + +load: clmultest.hex + bash -c "wl-copy < clmultest.hex" + +clean: + rm -f clmultest.hex clmultest.elf clmultest.o + -- cgit v1.2.3