Add disasmmably.

This commit is contained in:
colin.liang 2023-01-13 15:10:40 +08:00
parent eab4b918b9
commit 2cf0e04e02
2 changed files with 3 additions and 1 deletions

1
.gitignore vendored
View File

@ -3,6 +3,7 @@
/firmware/firmware.bin /firmware/firmware.bin
/firmware/firmware.elf /firmware/firmware.elf
/firmware/firmware.hex /firmware/firmware.hex
/firmware/firmware.dis
/firmware/firmware.map /firmware/firmware.map
/dhrystone/dhry.bin /dhrystone/dhry.bin
/dhrystone/dhry.elf /dhrystone/dhry.elf

View File

@ -58,6 +58,7 @@ firmware/firmware.elf: $(FIRMWARE_OBJS) $(TEST_OBJS) firmware/sections.lds
$(TOOLCHAIN_PREFIX)gcc -Os -mabi=ilp32 -march=rv32im -ffreestanding -nostdlib -o $@ \ $(TOOLCHAIN_PREFIX)gcc -Os -mabi=ilp32 -march=rv32im -ffreestanding -nostdlib -o $@ \
-Wl,--build-id=none,-Bstatic,-T,firmware/sections.lds,-Map,firmware/firmware.map,--strip-debug \ -Wl,--build-id=none,-Bstatic,-T,firmware/sections.lds,-Map,firmware/firmware.map,--strip-debug \
$(FIRMWARE_OBJS) $(TEST_OBJS) -lgcc $(FIRMWARE_OBJS) $(TEST_OBJS) -lgcc
$(TOOLCHAIN_PREFIX)objdump -S $@ > firmware/firmware.dis
chmod -x $@ chmod -x $@
firmware/start.o: firmware/start.S firmware/start.o: firmware/start.S
@ -124,7 +125,7 @@ clean:
rm -rf riscv-gnu-toolchain-riscv32i riscv-gnu-toolchain-riscv32ic \ rm -rf riscv-gnu-toolchain-riscv32i riscv-gnu-toolchain-riscv32ic \
riscv-gnu-toolchain-riscv32im riscv-gnu-toolchain-riscv32imc riscv-gnu-toolchain-riscv32im riscv-gnu-toolchain-riscv32imc
rm -vrf $(FIRMWARE_OBJS) $(TEST_OBJS) check.smt2 check.vcd synth.v synth.log \ rm -vrf $(FIRMWARE_OBJS) $(TEST_OBJS) check.smt2 check.vcd synth.v synth.log \
firmware/firmware.elf firmware/firmware.bin firmware/firmware.hex firmware/firmware.map \ firmware/firmware.elf firmware/firmware.bin firmware/firmware.dis firmware/firmware.hex firmware/firmware.map \
testbench_wb.vvp testbench.vcd testbench.trace \ testbench_wb.vvp testbench.vcd testbench.trace \
testbench_verilator testbench_verilator_dir testbench_verilator testbench_verilator_dir