]> Git Repo - qemu.git/blobdiff - target-tricore/cpu.c
target-arm: Set CPU has_el3 prop during virt init
[qemu.git] / target-tricore / cpu.c
index 7bf041afb91d554d7190cc484c6b7caa30e9feb0..abe16fa7e607b02850f66184f66a277758fd0866 100644 (file)
@@ -63,8 +63,17 @@ static bool tricore_cpu_has_work(CPUState *cs)
 static void tricore_cpu_realizefn(DeviceState *dev, Error **errp)
 {
     CPUState *cs = CPU(dev);
+    TriCoreCPU *cpu = TRICORE_CPU(dev);
     TriCoreCPUClass *tcc = TRICORE_CPU_GET_CLASS(dev);
+    CPUTriCoreState *env = &cpu->env;
 
+    /* Some features automatically imply others */
+    if (tricore_feature(env, TRICORE_FEATURE_16)) {
+        set_feature(env, TRICORE_FEATURE_131);
+    }
+    if (tricore_feature(env, TRICORE_FEATURE_131)) {
+        set_feature(env, TRICORE_FEATURE_13);
+    }
     cpu_reset(cs);
     qemu_init_vcpu(cs);
 
This page took 0.023872 seconds and 4 git commands to generate.