OSDN Git Service

target/riscv: Move hstatus.spvp check to check_access_hlsv
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 12 Apr 2023 11:43:23 +0000 (13:43 +0200)
committerAlistair Francis <alistair.francis@wdc.com>
Fri, 5 May 2023 00:49:50 +0000 (10:49 +1000)
commit9de7b7b5c7ca8e81c6d62b7c5c5a4753fa597bcb
treec2cd7fe7381801f10b37caf8702b9a953a756aad
parent02369f790676f8118b8f0769f58d5890e15fcd25
target/riscv: Move hstatus.spvp check to check_access_hlsv

The current cpu_mmu_index value is really irrelevant to
the HLV/HSV lookup.  Provide the correct priv level directly.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Weiwei Li <liweiwei@iscas.ac.cn>
Tested-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Message-Id: <20230325105429.1142530-16-richard.henderson@linaro.org>
Message-Id: <20230412114333.118895-16-richard.henderson@linaro.org>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
target/riscv/cpu_helper.c
target/riscv/op_helper.c