tricore: cleanup cpu type name composition
commitb9ad9d5b2110e4078819626d9a606679656d2498
authorIgor Mammedov <imammedo@redhat.com>
Thu, 5 Oct 2017 13:51:03 +0000 (5 15:51 +0200)
committerEduardo Habkost <ehabkost@redhat.com>
Fri, 27 Oct 2017 14:04:27 +0000 (27 16:04 +0200)
tree057df5780cdea133973d16e635ef6c18269ff03d
parent1aaa63193b307fe42ba714e0615646cec7b37c51
tricore: cleanup cpu type name composition

introduce TRICORE_CPU_TYPE_NAME macro and use it to construct
cpu type names. While at it move cpu type_infos into one
array and register it directly with type_init_from_array()
instead of custom tricore_cpu_register_types()/cpu_register()

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <1507211474-188400-30-git-send-email-imammedo@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
target/tricore/cpu.c
target/tricore/cpu.h