Skip to content

Commit 375b0c2

Browse files
Boot stub must end with 4-byte alignment
This allows it to be written out over the debug module interface.
1 parent ff30842 commit 375b0c2

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

sw/cheri/sim_boot_stub/boot.S

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,10 @@ start:
1818
li t0, HYPERRAM_BASE
1919
csetaddr ct1, ct1, t0
2020
cjr ct1
21+
22+
// Make sure the file ends with a 4-byte aligned region.
23+
.globl end
24+
.p2align 2
25+
end:
26+
nop
27+
nop

sw/cheri/sim_boot_stub/boot_sram.S

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,10 @@ start:
1818
li t0, SRAM_BASE
1919
csetaddr ct1, ct1, t0
2020
cjr ct1
21+
22+
// Make sure the file ends with a 4-byte aligned region.
23+
.globl end
24+
.p2align 2
25+
end:
26+
nop
27+
nop

0 commit comments

Comments
 (0)