Skip to content
Commit 8aa278df authored by Anup Patel's avatar Anup Patel Committed by Andes
Browse files

riscv: qemu: Use correct SYS_TEXT_BASE for S-mode on 32bit system



For 32bit system, the OpenSBI (or BBL) will jump to 0x80400000 address
in S-mode whereas for 64bit system it will jump to 0x80200000 address
in S-mode.

Currently, the S-mode U-Boot sets SYS_TEXT_BASE to 0x80200000 for both
32bit and 64bit system. This breaks S-mode U-Boot for 32bit system.

This patch sets different SYS_TEXT_BASE for 32bit and 64bit system so
that S-mode U-Boot works fine for both.

Signed-off-by: default avatarAnup Patel <anup.patel@wdc.com>
Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
Reviewed-by: default avatarLukas Auer <lukas.auer@aisec.fraunhofer.de>
Tested-by: default avatarKarsten Merker <merker@debian.org>
parent 081c6602
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment