target-tricore: Add ISA v1.3.1 cpu and fix tc1796 to using v1.3
authorBastian Koppelmann <kbastian@mail.uni-paderborn.de>
Sun, 22 Mar 2015 12:49:12 +0000 (12:49 +0000)
committerBastian Koppelmann <kbastian@mail.uni-paderborn.de>
Fri, 22 May 2015 15:02:33 +0000 (17:02 +0200)
Signed-off-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
Reviewed-by: Richard Henderson <rth@twiddle.net>
target-tricore/cpu.c

index 2ba0cf4c89ea86a48bf5e717416547857b010b83..9fe0b9783fa4293c0b2e1620a0e9b93d0124a802 100644 (file)
@@ -118,6 +118,13 @@ static void tc1796_initfn(Object *obj)
 {
     TriCoreCPU *cpu = TRICORE_CPU(obj);
 
+    set_feature(&cpu->env, TRICORE_FEATURE_13);
+}
+
+static void tc1797_initfn(Object *obj)
+{
+    TriCoreCPU *cpu = TRICORE_CPU(obj);
+
     set_feature(&cpu->env, TRICORE_FEATURE_131);
 }
 
@@ -136,6 +143,7 @@ typedef struct TriCoreCPUInfo {
 
 static const TriCoreCPUInfo tricore_cpus[] = {
     { .name = "tc1796",      .initfn = tc1796_initfn },
+    { .name = "tc1797",      .initfn = tc1797_initfn },
     { .name = "aurix",       .initfn = aurix_initfn },
     { .name = NULL }
 };