mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
target/arm: Use ARMGranuleSize in ARMVAParameters
Now we have an enum for the granule size, use it in the ARMVAParameters struct instead of the using16k/using64k bools. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20221003162315.2833797-3-peter.maydell@linaro.org
This commit is contained in:
parent
104f703d93
commit
3c003f7029
3 changed files with 50 additions and 20 deletions
|
@ -1062,13 +1062,7 @@ static bool get_phys_addr_lpae(CPUARMState *env, uint64_t address,
|
|||
}
|
||||
}
|
||||
|
||||
if (param.using64k) {
|
||||
stride = 13;
|
||||
} else if (param.using16k) {
|
||||
stride = 11;
|
||||
} else {
|
||||
stride = 9;
|
||||
}
|
||||
stride = arm_granule_bits(param.gran) - 3;
|
||||
|
||||
/*
|
||||
* Note that QEMU ignores shareability and cacheability attributes,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue