mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
target/riscv: Introduce mmuidx_2stage
Move and rename riscv_cpu_two_stage_lookup, to match the other mmuidx_* functions. 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-15-richard.henderson@linaro.org> Message-Id: <20230412114333.118895-15-richard.henderson@linaro.org> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
parent
340b5805db
commit
02369f7906
3 changed files with 11 additions and 15 deletions
|
@ -51,6 +51,11 @@ static inline bool mmuidx_sum(int mmu_idx)
|
|||
return (mmu_idx & 3) == MMUIdx_S_SUM;
|
||||
}
|
||||
|
||||
static inline bool mmuidx_2stage(int mmu_idx)
|
||||
{
|
||||
return mmu_idx & MMU_2STAGE_BIT;
|
||||
}
|
||||
|
||||
/* share data between vector helpers and decode code */
|
||||
FIELD(VDATA, VM, 0, 1)
|
||||
FIELD(VDATA, LMUL, 1, 3)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue