Skip to content

Commit

Permalink
fw: add workaround so objdump can disassemble compressed rv32
Browse files Browse the repository at this point in the history
instructions
  • Loading branch information
dehanj committed Nov 4, 2024
1 parent f99ff4f commit 92cf6a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hw/application_fpga/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,9 @@ secret:
# Firmware generation.
# Included in the bitstream.
#-------------------------------------------------------------------
LDFLAGS=-T $(P)/fw/tk1/firmware.lds
# -Wl,-mllvm,-mattr=+c,-mllvm,-mattr=+zmmul added as a workaround to be able to
# disassemble compressed RV32 instructions
LDFLAGS=-T $(P)/fw/tk1/firmware.lds -Wl,-mllvm,-mattr=+c,-mllvm,-mattr=+zmmul

$(FIRMWARE_OBJS): $(FIRMWARE_DEPS)
$(TESTFW_OBJS): $(FIRMWARE_DEPS)
Expand Down

0 comments on commit 92cf6a9

Please sign in to comment.