Re: [PATCH v5 02/22] target/arm: Add regime_has_2_ranges

2019-12-03 Thread Richard Henderson
On 12/3/19 11:01 AM, Peter Maydell wrote: >> +/* Return true if this address translation regime has two ranges. */ >> +static inline bool regime_has_2_ranges(ARMMMUIdx mmu_idx) >> +{ >> +switch (mmu_idx) { >> +case ARMMMUIdx_S12NSE0: >> +case ARMMMUIdx_S12NSE1: >> +case

Re: [PATCH v5 02/22] target/arm: Add regime_has_2_ranges

2019-12-03 Thread Peter Maydell
On Fri, 11 Oct 2019 at 14:48, Richard Henderson wrote: > > A translation with 2 ranges has both positive and negative addresses. > This is true for the EL1&0 and the as-yet unimplemented EL2&0 regimes. > > Signed-off-by: Richard Henderson > --- > target/arm/internals.h | 14 ++ >

[PATCH v5 02/22] target/arm: Add regime_has_2_ranges

2019-10-11 Thread Richard Henderson
A translation with 2 ranges has both positive and negative addresses. This is true for the EL1&0 and the as-yet unimplemented EL2&0 regimes. Signed-off-by: Richard Henderson --- target/arm/internals.h | 14 ++ target/arm/helper.c| 22 +-