Make the page-crossing instruction non-idempotent to detect erroneously
executing the first 16 bits of the instruction with garbage MSBs.
. = 0x80000000;
.text.init : { *(.text.init) }
- .tohost ALIGN(0x1000) : { *(.tohost) }
+ . = ALIGN(0x1000);
+ .tohost : { *(.tohost) }
.text : { *(.text) }
-Subproject commit d7b2fdc9ed30163ac7e4f5cfc502710e862a112e
+Subproject commit db0bfa223142e56b17dae6d92610f195014bbb80
// Make sure fetching a 4-byte instruction across a page boundary works.
li TESTNUM, 2
li a1, 666
- li a2, 1
- RVC_TEST_CASE (2, a1, 2, \
+ TEST_CASE (2, a1, 667, \
j 1f; \
.align 3; \
data: \
.dword 0xfedcba9876543210; \
.align 12; \
.skip 4094; \
- 1: addi a1, a2, 1)
+ 1: addi a1, a1, 1)
li sp, 0x1234
RVC_TEST_CASE (3, a0, 0x1234 + 1020, c.addi4spn a0, sp, 1020)