diff options
author | Bastian Koppelmann <kbastian@mail.uni-paderborn.de> | 2015-03-22 12:49:12 +0000 |
---|---|---|
committer | Bastian Koppelmann <kbastian@mail.uni-paderborn.de> | 2015-05-22 17:02:33 +0200 |
commit | fd5ecf31d4c48651de97c1aaf8771762753de9a7 (patch) | |
tree | de9d9e9a65080104fe3461e8dd965b9d83ec66c2 /target-tricore | |
parent | 8b6db32a4ec47d1171ccfa21d557096b99f4eef0 (diff) |
target-tricore: Add ISA v1.3.1 cpu and fix tc1796 to using v1.3
Signed-off-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'target-tricore')
-rw-r--r-- | target-tricore/cpu.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/target-tricore/cpu.c b/target-tricore/cpu.c index 2ba0cf4c89..9fe0b9783f 100644 --- a/target-tricore/cpu.c +++ b/target-tricore/cpu.c @@ -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 } }; |