Features/QOM/CPU: Difference between revisions

From QEMU
m (Add comment on sh4 - s390 and x86 have been prioritized meanwhile)
(Status update: s390 pulled, sparc on the list)
Line 42: Line 42:
=== Status ===
=== Status ===


NB: Due to hosting issues, branches have moved to GitHub.
''NB: Due to hosting issues, branches have moved to GitHub.''


{| border="1"
{| border="1"
Line 66: Line 66:
|qom-cpu
|qom-cpu
|-
|-
|[https://github.com/afaerber/qemu-cpu/commits/qom-cpu-s390 qom-cpu-s390]
|<del>[https://github.com/afaerber/qemu-cpu/commits/qom-cpu-s390 qom-cpu-s390]</del>
|qom-cpu
|qom-cpu
|-
|-
|[https://github.com/afaerber/qemu-cpu/commits/qom-cpu-x86 qom-cpu-x86], part 1
|[https://github.com/afaerber/qemu-cpu/commits/qom-cpu-x86 qom-cpu-x86], part 1
|qom-cpu
|-
|[https://github.com/afaerber/qemu-cpu/commits/qom-cpu-sparc qom-cpu-sparc]
|qom-cpu
|qom-cpu
|-
|-

Revision as of 11:11, 6 April 2012

QOM CPU

"CPU" name conflict

Identifier current interim final
struct CPU$archState or
struct CPUState_$arch
defined in target-*/cpu.h ???
#define CPUState alias to CPU$archState / CPUState_$arch dropped in favor of CPU
struct CPUClass class
#define CPU_CLASS(class) cast macro for class
struct CPU object
#define CPU(obj) cast macro for object
#define CPU_GET_CLASS(obj) macro to obtain class pointer

Resolved by renaming existing CPUState to CPUArchState and by using struct CPUState for the object state, while using CPU(obj) as macro for casting.

Status

NB: Due to hosting issues, branches have moved to GitHub.

name depends on
type_init()
qom-user type_init()
object_class_get_list()
qom-cpu qom-user
qom-cpu-arm qom-cpu
qom-cpu-unicore32 qom-cpu
qom-cpu-s390 qom-cpu
qom-cpu-x86, part 1 qom-cpu
qom-cpu-sparc qom-cpu
qom-cpu-sh4 (to be updated) qom-cpu, object_realize()
qom-cpu-others (to be split up) qom-cpu