Features/QOM/CPU: Difference between revisions

From QEMU
(Add comment on solution of described name conflict)
(Added work breakdown structure for CPU series)
Line 39: Line 39:
Resolved by renaming existing CPUState to '''CPUArchState''' and by using struct '''CPUState''' for the object state,
Resolved by renaming existing CPUState to '''CPUArchState''' and by using struct '''CPUState''' for the object state,
while using '''CPU'''(obj) as macro for casting.
while using '''CPU'''(obj) as macro for casting.
=== Status ===
NB: Due to hosting issues, branches have moved to GitHub.
{| border="1"
!name
!depends on
|-
|<del>type_init()</del>
|
|-
|<del>qom-user</del>
|type_init()
|-
|<del>object_class_get_list()</del>
|
|-
|<del>qom-cpu</del>
|qom-user
|-
|[https://github.com/afaerber/qemu-cpu/commits/qom-cpu-arm qom-cpu-arm]
|qom-cpu
|-
|[https://github.com/afaerber/qemu-cpu/commits/qom-cpu-unicore32 qom-cpu-unicore32]
|qom-cpu
|-
|[https://github.com/afaerber/qemu-cpu/commits/qom-cpu-sh4 qom-cpu-sh4]
|qom-cpu
|-
|[https://github.com/afaerber/qemu-cpu/commits/qom-cpu-others qom-cpu-others] (to be split up)
|qom-cpu
|}

Revision as of 15:24, 23 March 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-sh4 qom-cpu
qom-cpu-others (to be split up) qom-cpu