Il 26/06/2014 16:53, Peter Maydell ha scritto:
>> This will break running BE32 binaries with "-cpu any"
>> (which sets all the features we know about, including
>> ARM_FEATURE_V7).
>
> Yes, this was on purpose.
I would expect that anybody running BE32 binaries is
probably running them with -cpu any, since it's the
default. So breaking them is a bit harsh...


Yeah, it is.  I guess I can do

static inline bool arm_sctlr_b(CPUARMState *env)
{
    return
#ifndef TARGET_USER_ONLY
      !arm_feature(env, ARM_FEATURE_V7) &&
#endif
      (env->cp15.c1_sys & SCTLR_B) != 0;
}

instead.  Plus a comment of course.

Paolo

Reply via email to