Home
last modified time | relevance | path

Searched hist:e1482ae792fc2b153404069a78fdf7ccaf81da58 (Results 1 – 1 of 1) sorted by relevance

/optee_os/core/include/mm/
H A Dcore_mmu.he1482ae792fc2b153404069a78fdf7ccaf81da58 Sat Mar 15 09:33:10 UTC 2025 Yu-Chien Peter Lin <peter.lin@sifive.com> core: mm: fix va to index calculation for RV64

On RV64, shifting va is not enough when top bits are
present in the virtual address, e.g. for Sv48, bits
63-48 must be set when bit 47 is set to form a valid
virtual address.

In this case, we need to mask the base-level virtual
addresses to clear any extended bits before calculating
the index.

Signed-off-by: Yu-Chien Peter Lin <peter.lin@sifive.com>
Suggested-by: Jens Wiklander <jens.wiklander@linaro.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Reviewed-by: Alvin Chang <alvinga@andestech.com>