target-sparc: QOM'ify CPU
authorAndreas Färber <afaerber@suse.de>
Wed, 4 Apr 2012 23:29:40 +0000 (01:29 +0200)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 7 Apr 2012 08:25:21 +0000 (08:25 +0000)
commitab7ab3d74c357e73a37b241fba27ea7f0595c085
tree57cb7d0d58157b237539c0e7bacbb175c4e325bf
parent88ca012a1f0bb89d481e506eb4738382062da55f
target-sparc: QOM'ify CPU

Embed CPUSPARCState as first member of SPARCCPU.
Drop cpu_sparc_close() in favor of object_delete() and a finalizer.
Let cpu_state_reset() call cpu_reset().

Make TYPE_SPARC_CPU non-abstract for now.
Distinguish between "sparc-cpu" and "sparc64-cpu".

Signed-off-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
target-sparc/cpu-qom.h [new file with mode: 0644]
target-sparc/cpu.c
target-sparc/cpu.h