target-arm: Add feature unset function

Add an unset_feature() function to compliment the set_feature() function. This
will be used to disable functions after they have been enabled during
initialization.

Backports commit 08828484a5c1ec55a6cbb4b4d377bfcf41199b5c from qemu
This commit is contained in:
Greg Bellows 2018-02-12 10:15:49 -05:00 committed by Lioncash
parent c457067e47
commit 1d3719a39f
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -270,6 +270,11 @@ static inline void set_feature(CPUARMState *env, int feature)
env->features |= 1ULL << feature;
}
static inline void unset_feature(CPUARMState *env, int feature)
{
env->features &= ~(1ULL << feature);
}
static void arm_cpu_initfn(struct uc_struct *uc, Object *obj, void *opaque)
{
CPUState *cs = CPU(obj);