On 6 March 2014 19:32, Peter Maydell <peter.maydell@xxxxxxxxxx> wrote: > @@ -1065,8 +1065,9 @@ static void par_write(CPUARMState *env, const ARMCPRegInfo *ri, uint64_t value) > */ > static inline bool extended_addresses_enabled(CPUARMState *env) > { > - return arm_feature(env, ARM_FEATURE_LPAE) > - && (env->cp15.c2_control & (1U << 31)); > + return arm_feature(env, ARM_FEATURE_V8) > + || (arm_feature(env, ARM_FEATURE_LPAE) > + && (env->cp15.c2_control & (1U << 31))); > } Just noticed a minor nit here -- rather than checking for ARM_FEATURE_V8 we should be using arm_el_is_aa64(env, 1) (as the translation code itself does). At the moment the two give the same answer, but if/when we ever support running a 32 bit kernel on an ARMv8 CPU they'll be different, so better to get the check right to start with. I'll fix this for the next round of these patches (and also update the now out of date comment). thanks -- PMM _______________________________________________ kvmarm mailing list kvmarm@xxxxxxxxxxxxxxxxxxxxx https://lists.cs.columbia.edu/mailman/listinfo/kvmarm