]> git.baikalelectronics.ru Git - uboot.git/commit
riscv: qemu: Use correct SYS_TEXT_BASE for S-mode on 32bit system
authorAnup Patel <Anup.Patel@wdc.com>
Thu, 11 Apr 2019 06:52:12 +0000 (06:52 +0000)
committerAndes <uboot@andestech.com>
Thu, 9 May 2019 08:46:24 +0000 (16:46 +0800)
commitfb229613eebe574831cd22abae0d2feb1944fda1
tree265a45c2d055f13a2f9337042f6fd5c1f2b9f648
parent90fb42786456b3cb5ef40d78411909129882e43c
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: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Lukas Auer <lukas.auer@aisec.fraunhofer.de>
Tested-by: Karsten Merker <merker@debian.org>
board/emulation/qemu-riscv/Kconfig