mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
qom: Introduce CPU class
Reintroduce CPUState as QOM object: It's abstract and derived directly from TYPE_OBJECT for compatibility with the user emulators. The identifier CPUState avoids conflicts between CPU() and the struct. Introduce $(qom-twice-y) to build it separately for system and for user emulators. Prepare a virtual reset method, (re)introduce cpu_reset() as wrapper. Signed-off-by: Andreas Färber <afaerber@suse.de> Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
9349b4f9fd
commit
dd83b06ae6
5 changed files with 138 additions and 0 deletions
1
configure
vendored
1
configure
vendored
|
@ -3921,6 +3921,7 @@ fi
|
|||
d=libuser
|
||||
mkdir -p $d
|
||||
mkdir -p $d/trace
|
||||
mkdir -p $d/qom
|
||||
symlink $source_path/Makefile.user $d/Makefile
|
||||
|
||||
if test "$docs" = "yes" ; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue