target-sparc: Let cpu_sparc_init() return SPARCCPU
authorAndreas Färber <afaerber@suse.de>
Thu, 3 May 2012 01:12:35 +0000 (03:12 +0200)
committerAndreas Färber <afaerber@suse.de>
Mon, 4 Jun 2012 21:00:45 +0000 (23:00 +0200)
commite59be77a5b88510ceca87335ee9f241ded566ae2
tree5b904fbdaf9ba014c0f37e948f5930d4021f91c2
parentc356a1bcc0b609125cb540dae3796a3618441300
target-sparc: Let cpu_sparc_init() return SPARCCPU

Make include paths for cpu-qom.h consistent, so that SPARCCPU can be
used in cpu.h.

Turn cpu_init macro into a static inline function returning
CPUSPARCState for backwards compatibility.

Signed-off-by: Andreas Färber <afaerber@suse.de>
Acked-by: Blue Swirl <blauwirbel@gmail.com>
target-sparc/cpu.c
target-sparc/cpu.h