]> git.dujemihanovic.xyz Git - u-boot.git/commit
riscv: semihosting: correct alignment
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Wed, 19 Jun 2024 15:22:52 +0000 (17:22 +0200)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Mon, 22 Jul 2024 03:15:11 +0000 (11:15 +0800)
commit36756308a215225e1a6421fc15e31780871059e4
treee4a03566b36de6b65ba587de2f4e39a317e48c8c
parent66b5ee9c558ea5a4360a9bfe0bf894098ff69f7e
riscv: semihosting: correct alignment

Commit 7400d34ba992 ("riscv: semihosting: replace inline assembly with
assembly file") reduced the alignment of function smh_trap().

As described in the "RISC-V Semihosting" specification [1] the ssli,
ebreak, and srai statements must all reside in the same memory page.

[1] RISC-V Semihosting, Version 0.4, 12th June 2024
    https://github.com/riscv-non-isa/riscv-semihosting

Fixes: 7400d34ba992 ("riscv: semihosting: replace inline assembly with assembly file")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
arch/riscv/lib/semihosting.S