openrisc: cleanup cpu type name composition
authorIgor Mammedov <imammedo@redhat.com>
Thu, 5 Oct 2017 13:50:51 +0000 (15:50 +0200)
committerEduardo Habkost <ehabkost@redhat.com>
Fri, 27 Oct 2017 14:03:54 +0000 (16:03 +0200)
commita677273142a6db7dea6c70ea7076a28c10b93cb7
tree8e9ce019a4960147080d96c4393e826a9af5b4ae
parentb2c223571e1a4c0bc4cf559fbc433c0a2b83ae35
openrisc: cleanup cpu type name composition

use new OPENRISC_CPU_TYPE_NAME to compose CPU type name and get
rid of intermediate OpenRISCCPUInfo/openrisc_cpu_register_types()
which is replaced by static TypeInfo array.

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