riscv: use unsigned comparison for address check

The comparison of a register to see if it holds a number less than
3 needs to be unsigned since the register is otherwise expected to
hold an address that could have the most significant bit set.

Fixes #5561
This commit is contained in:
Gedare Bloom
2026-04-30 17:02:07 -05:00
committed by Kinsey Moore
parent fd53b09378
commit 962dfc8676
+1 -1
View File
@@ -108,7 +108,7 @@ SYM(_start):
* level passed to sbi_hsm_hart_start.
*/
li t0, 3
ble s1, t0, .Lafter_fdt_copy
bleu s1, t0, .Lafter_fdt_copy
mv a0, s1
call bsp_fdt_copy
.Lafter_fdt_copy: