diff options
| author | cheapie <cheapiephp@gmail.com> | 2026-06-14 19:38:46 -0500 |
|---|---|---|
| committer | cheapie <cheapiephp@gmail.com> | 2026-06-14 19:38:46 -0500 |
| commit | 638c56796678da47fef836fbdd056cfb75a639fc (patch) | |
| tree | 02d29d929a72168853cd99c9a4af307a3997b561 /assembly/xh3bextm-test/Makefile | |
| parent | bc039700b6381040f9b907613654e201c83e17e5 (diff) | |
| download | rvcontroller-638c56796678da47fef836fbdd056cfb75a639fc.tar rvcontroller-638c56796678da47fef836fbdd056cfb75a639fc.tar.gz rvcontroller-638c56796678da47fef836fbdd056cfb75a639fc.tar.bz2 rvcontroller-638c56796678da47fef836fbdd056cfb75a639fc.tar.xz rvcontroller-638c56796678da47fef836fbdd056cfb75a639fc.zip | |
Add Xh3bextm extension from Hazard3
Diffstat (limited to 'assembly/xh3bextm-test/Makefile')
| -rw-r--r-- | assembly/xh3bextm-test/Makefile | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/assembly/xh3bextm-test/Makefile b/assembly/xh3bextm-test/Makefile new file mode 100644 index 0000000..62a1190 --- /dev/null +++ b/assembly/xh3bextm-test/Makefile @@ -0,0 +1,24 @@ +MARCH ?= rv32imacbzicntr_zicond_zicsr_zifencei_zihintpause_zilsd_zclsd_zabha_zacas_zbkb_zbkx_zcb_zcmp_zcmt + +.PHONY: all dump load clean + +all: xh3bextm-test.hex + +xh3bextm-test.o: xh3bextm-test.S + riscv32-none-elf-as -I../rvcontroller-libraries -march=${MARCH} -o xh3bextm-test.o xh3bextm-test.S + +xh3bextm-test.elf: xh3bextm-test.o + riscv32-none-elf-ld -T rvcontroller.ld --no-warn-rwx-segments -o xh3bextm-test.elf xh3bextm-test.o + +dump: xh3bextm-test.elf + riscv32-none-elf-objdump -d xh3bextm-test.elf + +xh3bextm-test.hex: xh3bextm-test.elf + riscv32-none-elf-objcopy -O ihex xh3bextm-test.elf xh3bextm-test.hex + +load: xh3bextm-test.hex + bash -c "wl-copy < xh3bextm-test.hex" + +clean: + rm -f xh3bextm-test.bin xh3bextm-test.elf xh3bextm-test.o + |
