mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-22 08:01:08 +00:00
target/arm: Supply uc_struct instance to tcg_enabled()
This commit is contained in:
parent
ecd3f0a5df
commit
59d808cf21
|
@ -721,7 +721,7 @@ static int arm_cpu_realizefn(struct uc_struct *uc, DeviceState *dev, Error **err
|
||||||
* Presence of EL2 itself is ARM_FEATURE_EL2, and of the
|
* Presence of EL2 itself is ARM_FEATURE_EL2, and of the
|
||||||
* Security Extensions is ARM_FEATURE_EL3.
|
* Security Extensions is ARM_FEATURE_EL3.
|
||||||
*/
|
*/
|
||||||
assert(!tcg_enabled() || no_aa32 || cpu_isar_feature(arm_div, cpu));
|
assert(!tcg_enabled(uc) || no_aa32 || cpu_isar_feature(arm_div, cpu));
|
||||||
set_feature(env, ARM_FEATURE_LPAE);
|
set_feature(env, ARM_FEATURE_LPAE);
|
||||||
set_feature(env, ARM_FEATURE_V7);
|
set_feature(env, ARM_FEATURE_V7);
|
||||||
}
|
}
|
||||||
|
@ -747,7 +747,7 @@ static int arm_cpu_realizefn(struct uc_struct *uc, DeviceState *dev, Error **err
|
||||||
if (arm_feature(env, ARM_FEATURE_V6)) {
|
if (arm_feature(env, ARM_FEATURE_V6)) {
|
||||||
set_feature(env, ARM_FEATURE_V5);
|
set_feature(env, ARM_FEATURE_V5);
|
||||||
if (!arm_feature(env, ARM_FEATURE_M)) {
|
if (!arm_feature(env, ARM_FEATURE_M)) {
|
||||||
assert(!tcg_enabled() || no_aa32 || cpu_isar_feature(jazelle, cpu));
|
assert(!tcg_enabled(uc) || no_aa32 || cpu_isar_feature(jazelle, cpu));
|
||||||
set_feature(env, ARM_FEATURE_AUXCR);
|
set_feature(env, ARM_FEATURE_AUXCR);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue