sparc: move adhoc CPUSPARCState initialization to realize time
commit700549620b3ee15924f19b9eb79961655ce671c5
authorIgor Mammedov <imammedo@redhat.com>
Thu, 24 Aug 2017 16:31:28 +0000 (24 18:31 +0200)
committerEduardo Habkost <ehabkost@redhat.com>
Fri, 1 Sep 2017 14:54:24 +0000 (1 11:54 -0300)
treecda989709ced1ec08c7b9dadb78a9ed5dbf55284
parentde05005bf785315b8a1f12cfa8d8cfd98003b638
sparc: move adhoc CPUSPARCState initialization to realize time

SPARCCPU::env was initialized from previously set properties
(with help of sparc_cpu_parse_features) in cpu_sparc_register().
However there is not reason to keep it there as this task is
typically done at realize time. So move post properties
initialization into sparc_cpu_realizefn, which brings
cpu_sparc_init() closer to cpu_generic_init().

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <1503592308-93913-6-git-send-email-imammedo@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
target/sparc/cpu.c