target-sparc: Implement CPUClass::parse_features() for SPARCCPU
commit433ac7a968ccff83f0d0e9a3c3921bc208175239
authorAndreas Färber <afaerber@suse.de>
Mon, 3 Mar 2014 23:38:58 +0000 (4 00:38 +0100)
committerAndreas Färber <afaerber@suse.de>
Thu, 13 Mar 2014 18:20:45 +0000 (13 19:20 +0100)
tree2a40d70ba53aae700e06a68a503f3a49b561c457
parentdb5d39f7866d3b02e06b91b0404061a4da00cd6c
target-sparc: Implement CPUClass::parse_features() for SPARCCPU

Factor cpu_model parsing out of cpu_sparc_find_by_name() by passing
cpu_sparc_find_by_name() the name portion only and calling
CPUClass::parse_features() from cpu_sparc_register() afterwards.

Tested-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Signed-off-by: Andreas Färber <afaerber@suse.de>
target-sparc/cpu.c