mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-02-25 19:26:47 +00:00
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:
parent
c457067e47
commit
1d3719a39f
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue