Skip to content

Commit

Permalink
Fixed alignment problem in error_leds program
Browse files Browse the repository at this point in the history
Programs need to be 4 byte aligned for srec to happliy convert them to
vmem files. The `.trap` section wasn't in the linker script, which
meant the ALIGN function in the linker script wasn't of any use.
  • Loading branch information
HU90m authored and marnovandermaas committed Jun 18, 2024
1 parent 5df462c commit 0218281
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sw/cheri/error_leds/error.S
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ accesssystemregister:
j fail // We should never get here.

// Trap handler must be 4 byte aligned.
.section .trap, "ax", @progbits
.section .text.trap, "ax", @progbits
.p2align 2
trap:
li t0, 0x01000000 //0x10 for simulation 0x01000000 for FPGA.
Expand Down

0 comments on commit 0218281

Please sign in to comment.