Statistics
| Branch: | Revision:

root @ 09f1bbcd

# Date Author Comment
4e27e819 06/08/2012 05:11 pm Michael Roth

qapi: Add Visitor interfaces for uint*_t and int*_t

This adds visitor interfaces for fixed-width integers types.
Implementing these in visitors is optional, otherwise we fall back to
visit_type_int() (int64_t) with some additional bounds checking to avoid...

2d496105 06/08/2012 05:11 pm Michael Roth

qapi: Unit tests for visitor-based serialization

Currently we test our visitors individually, and seperately for input
vs. output. This is useful for validating internal representations
against the native C types and vice-versa, and other visitor-specific...

173bbb75 06/08/2012 05:11 pm Michael Roth

qapi: String visitor, use %f representation for floats

Currently string-output-visitor formats floats as %g, which is nice in
that trailing 0's are automatically truncated, but otherwise this causes
some issues:

- it uses 6 significant figures instead of 6 decimal places, which...
0d30b0a2 06/08/2012 05:11 pm Michael Roth

qapi: Add String visitor coverage to serialization unit tests

Signed-off-by: Michael Roth <>
Signed-off-by: Andreas Färber <>

09f1bbcd 06/08/2012 05:11 pm Michael Roth

qdev: Use int32_t container for devfn property

Valid range for devfn is -1 to 255 (-1 for automatic assignment). We do
not currently validate this due to devfn being stored as a uint32_t.
This can lead to segfaults and other strange behavior.

We could technically just cast it to int32_t to implement the checking,...

fa79c914 06/07/2012 12:21 pm Anthony Liguori

Merge remote-tracking branch 'bonzini/nested-makefiles-3' into staging

  • bonzini/nested-makefiles-3: (29 commits)
    build: do not create directories at configure time
    configure: ensure directory exists when creating symlink
    build: compile oslib-obj-y once...
083dbf48 06/07/2012 11:12 am Peter A. G. Crosthwaite

target-microblaze: fix swx build breakage

The lazy initialisation of r_check was throwing an error on --enable-debug.
Removed the lazy initialisation of r_check and swx_addr.

Signed-off-by: Peter A. G. Crosthwaite <>
Signed-off-by: Edgar E. Iglesias <>

2dee8d54 06/07/2012 10:21 am Paolo Bonzini

build: do not create directories at configure time

Signed-off-by: Paolo Bonzini <>

25f27a4f 06/07/2012 10:21 am Paolo Bonzini

build: compile oslib-obj-y once

There is no difference in oslib-obj-y between user-mode and system
targets. There used to be when user-mode could optionally be
compiled with PIE.

Signed-off-by: Paolo Bonzini <>

ec5b06d7 06/07/2012 10:21 am Anthony Liguori

configure: ensure directory exists when creating symlink

Signed-off-by: Anthony Liguori <>

49ac9e0a 06/07/2012 10:21 am Paolo Bonzini

build: move device tree to per-target Makefile.objs

Signed-off-by: Paolo Bonzini <>

00c705fb 06/07/2012 10:21 am Paolo Bonzini

build: libcacard Makefile cleanups

Build vscclient from toplevel Makefile, limit usage of vpath.

Signed-off-by: Paolo Bonzini <>

fec90ff0 06/07/2012 10:21 am Paolo Bonzini

build: limit usage of vpath

All paths are now explicitly given, and the object tree mimics
the source tree, so there is no need to apply special vpaths.

Signed-off-by: Paolo Bonzini <>

be1029ec 06/07/2012 10:21 am Paolo Bonzini

build: convert libhw to nested Makefile.objs

After this patch, the libhw* directories will have a hierarchy
that mimics the source tree. This is useful because we do have
a couple of files there that are in the top source directory.

Signed-off-by: Paolo Bonzini <>

c353f261 06/07/2012 10:21 am Paolo Bonzini

build: move per-target hw/ objects to nested Makefile.objs

This completes the move to nested Makefiles for virtio and a few
other files that were not part of obj-TARGET-y, but still were
compiled separately for each target.

Signed-off-by: Paolo Bonzini <>

4eb7ba8a 06/07/2012 10:21 am Paolo Bonzini

build: move qga/ objects to nested Makefile.objs

Signed-off-by: Paolo Bonzini <>

3d5a3f9a 06/07/2012 10:21 am Paolo Bonzini

build: move target-independent hw/ objects to nested Makefile.objs

This patch starts converting the hw/ directory. Some files in hw/
are compiled once, some twice (32-/64-bit), some once per target.
Each category is moved in a separate patch.

After this patch, the files that are compiled once will show the...

4c696054 06/07/2012 10:21 am Paolo Bonzini

build: move slirp/ objects to nested Makefile.objs

Signed-off-by: Paolo Bonzini <>

dd5614d6 06/07/2012 10:21 am Paolo Bonzini

build: move qapi/ objects to nested Makefile.objs

Signed-off-by: Paolo Bonzini <>

8867aef0 06/07/2012 10:21 am Paolo Bonzini

build: move ui/ objects to nested Makefile.objs

Signed-off-by: Paolo Bonzini <>

b0b68fc6 06/07/2012 10:21 am Paolo Bonzini

build: move audio/ objects to nested Makefile.objs

Signed-off-by: Paolo Bonzini <>

7456e4ce 06/07/2012 10:21 am Paolo Bonzini

build: move block/ objects to nested Makefile.objs

Signed-off-by: Paolo Bonzini <>

d8469de6 06/07/2012 10:21 am Paolo Bonzini

build: move net/ objects to nested Makefile.objs

Signed-off-by: Paolo Bonzini <>

ee20477d 06/07/2012 10:21 am Paolo Bonzini

build: move fsdev/ objects to nested Makefile.objs

Signed-off-by: Paolo Bonzini <>

99100dc3 06/07/2012 10:21 am Paolo Bonzini

build: move rules for nesting to Makefile.objs

At this point we will start adding nesting behavior to other files
than Makefile.target. Because Makefile.objs is included by
Makefile.target, it is simpler to move the processing of
subdirectories there.

To enable this, only add per-target files to obj-y. Use a separate...

7f07b9cb 06/07/2012 10:21 am Paolo Bonzini

build: adapt qom/Makefile and move it to Makefile.objs

qom/ already used a separate makefile. Convert it to use relative
paths, and make it declare both common-obj-y and user-obj-y. This
way, the upper makefiles do not need to know that some QOM files
are compiled twice....

fbe37ef3 06/07/2012 10:21 am Paolo Bonzini

build: move other target-*/ objects to nested Makefile.objs

Signed-off-by: Paolo Bonzini <>

5f86146f 06/07/2012 10:20 am Paolo Bonzini

dump: remove dumping stuff from cpu-all.h

This simplifies things, because they will only be included for softmmu
targets and because the stubs are taken out-of-line in separate files,
which in the future could even be compiled only once.

Signed-off-by: Paolo Bonzini <>

4720bd05 06/07/2012 10:19 am Paolo Bonzini

dump: change cpu_get_note_size to return ssize_t

So that it can use the same prototype in both cases.

Signed-off-by: Paolo Bonzini <>

db207769 06/07/2012 10:19 am Paolo Bonzini

dump: do not compile dump.o for user-mode emulation

It is not needed, because the monitor is not included.

Cc: Wen Congyang <>
Signed-off-by: Paolo Bonzini <>

9cdc8df3 06/07/2012 08:19 am Paolo Bonzini

build: move libobj-y variable to nested Makefile.objs

Signed-off-by: Paolo Bonzini <>

5e8861a0 06/07/2012 08:17 am Paolo Bonzini

build: move obj-TARGET-y variables to nested Makefile.objs

Also drop duplicate occurrence of device-hotplug.o.

Signed-off-by: Paolo Bonzini <>

7fc5152c 06/07/2012 08:17 am Paolo Bonzini

build: move *-user/ objects to nested Makefile.objs

Signed-off-by: Paolo Bonzini <>

e05804ee 06/07/2012 08:17 am Paolo Bonzini

build: add rules for nesting

This adds the 'magic' rules that take care of subdirectories.
The subdirectory makefiles in the source tree are not complete; they
only define some variables (listed in nested-vars) according to the
configuration.

The magic rules descend into subdirectory makefiles and gather the...

4115852b 06/07/2012 08:17 am Paolo Bonzini

build: do not sprinkle around GENERATED_HEADERS dependencies

Keeping GENERATED_HEADERS dependencies up-to-date everywhere is complex.
We can simply make the Makefile depend on them, and they will be built
before all other targets.

Signed-off-by: Paolo Bonzini <>

046e7c5f 06/07/2012 08:17 am Paolo Bonzini

build: remove trace-nested-y

Signed-off-by: Paolo Bonzini <>

34941700 06/06/2012 03:57 pm Anthony Liguori

Merge remote-tracking branch 'qmp/queue/qmp' into staging

  • qmp/queue/qmp: (29 commits)
    Add 'query-events' command to QMP to query async events
    qapi: convert netdev_del
    qapi: convert netdev_add
    net: net_client_init(): use error_set()
    net: purge the monitor object from all init functions...
e1ae9a7a 06/06/2012 12:55 pm Anthony Liguori

Merge remote-tracking branch 'afaerber-or/qom-cpu-3' into staging

  • afaerber-or/qom-cpu-3: (74 commits)
    Kill off cpu_state_reset()
    linux-user: Use cpu_reset() after cpu_init() / cpu_copy()
    bsd-user: Use cpu_reset() in after cpu_init()
    leon3: Store SPARCCPU in ResetData...
6e72ae46 06/06/2012 12:23 pm Anthony Liguori

Merge remote-tracking branch 'qemu-kvm/uq/master' into staging

  • qemu-kvm/uq/master:
    kvm: Fix build for non-CAP_IRQ_ROUTING targets
d3d3bef0 06/06/2012 11:41 am Jan Kiszka

kvm: Fix build for non-CAP_IRQ_ROUTING targets

A type definition and a KVMState field initialization escaped the
required wrapping with KVM_CAP_IRQ_ROUTING. Also, we need to provide a
dummy kvm_irqchip_release_virq as virtio-pci references (but does not
use) it....

721589dd 06/05/2012 04:05 am Anthony Liguori

Revert "Revert "rtl8139: do the network/host communication only in normal operating mode""

This reverts commit 9c92bf7f6c3f675e60b8ba8a5287bb88ea1eac36.

Per Jason's request.

Signed-off-by: Anthony Liguori <>

c356a1bc 06/05/2012 12:00 am Andreas Färber

cpu-exec: Use cpu_reset() in cpu_exec() for TARGET_PPC

CPUState will be needed for all targets in the future, so place it into
the main variable declaration block.

Signed-off-by: Andreas Färber <>
Acked-by: Alexander Graf <>

e59be77a 06/05/2012 12:00 am Andreas Färber

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 <>...

8968f588 06/05/2012 12:00 am Andreas Färber

sun4m: Use cpu_sparc_init() to obtain SPARCCPU

Needed for {main,secondary}_cpu_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Blue Swirl <>

5414dec6 06/05/2012 12:00 am Andreas Färber

sun4m: Pass SPARCCPU to {main,secondary}_cpu_reset()

We can now use cpu_reset() in place of cpu_state_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Blue Swirl <>

8ebdf9dc 06/05/2012 12:00 am Andreas Färber

sun4u: Use cpu_sparc_init() to obtain SPARCCPU

This prepares using it in sun4uv_init().

Signed-off-by: Andreas Färber <>
Acked-by: Blue Swirl <>

f9d1465f 06/05/2012 12:00 am Andreas Färber

sun4u: Let cpu_devinit() return SPARCCPU

Needed for main_cpu_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Blue Swirl <>

403d7a2d 06/05/2012 12:00 am Andreas Färber

sun4u: Store SPARCCPU in ResetData

We can now use cpu_reset() in place of cpu_state_reset() in
main_cpu_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Blue Swirl <>

60ad0733 06/05/2012 12:00 am Andreas Färber

leon3: Use cpu_sparc_init() to obtain SPARCCPU

Needed for main_cpu_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Blue Swirl <>

c537d79c 06/05/2012 12:00 am Andreas Färber

leon3: Store SPARCCPU in ResetData

Allows us to use cpu_reset() in place of cpu_state_reset() in
main_cpu_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Blue Swirl <>

fdcb4fb6 06/05/2012 12:00 am Andreas Färber

bsd-user: Use cpu_reset() in after cpu_init()

Eliminates cpu_state_reset() usage.

Signed-off-by: Andreas Färber <>
Acked-by: Blue Swirl <>

ff18b762 06/05/2012 12:00 am Andreas Färber

linux-user: Use cpu_reset() after cpu_init() / cpu_copy()

Eliminates cpu_state_reset() usage.

Signed-off-by: Andreas Färber <>

b7e516ce 06/05/2012 12:00 am Andreas Färber

Kill off cpu_state_reset()

In commit 1bba0dc932e8826a7d030df3767daf0bc339f9a2 cpu_reset()
was renamed to cpu_state_reset(), to allow introducing a new cpu_reset()
that would operate on QOM objects.

All callers have been updated except for one in target-mips, so drop all...

05769733 06/05/2012 12:00 am Andreas Färber

spapr: Use cpu_ppc_init() to obtain PowerPCCPU

Needed for spapr_cpu_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Alexander Graf <>

5b2038e0 06/05/2012 12:00 am Andreas Färber

spapr: Pass PowerPCCPU to spapr_cpu_reset()

Allows us to use cpu_reset() in place of cpu_state_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Alexander Graf <>

322164e0 06/05/2012 12:00 am Andreas Färber

ppc440_bamboo: Use cpu_ppc_init() to obtain PowerPCCPU

Needed for main_cpu_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Alexander Graf <>

182fbbf2 06/05/2012 12:00 am Andreas Färber

ppc440_bamboo: Pass PowerPCCPU to main_cpu_reset()

Allows us to use cpu_reset() in place of cpu_state_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Alexander Graf <>

57274713 06/05/2012 12:00 am Andreas Färber

ppc4xx_devs: Use cpu_ppc_init() to obtain PowerPCCPU

Needed for ppc4xx_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Alexander Graf <>

90cb09d9 06/05/2012 12:00 am Andreas Färber

ppc4xx_devs: Pass PowerPCCPU to ppc4xx_reset()

Allows us to use cpu_reset() in place of cpu_state_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Alexander Graf <>

8f8204ec 06/05/2012 12:00 am Andreas Färber

ppc_newworld: Use cpu_ppc_init() to obtain PowerPCCPU

Needed for ppc_core99_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Alexander Graf <>

6680988c 06/05/2012 12:00 am Andreas Färber

ppc_newworld: Pass PowerPCCPU to ppc_core99_reset()

Allows us to use cpu_reset() in place of cpu_state_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Alexander Graf <>

72c33dd7 06/05/2012 12:00 am Andreas Färber

ppc_oldworld: Use cpu_ppc_init() to obtain PowerPCCPU

Needed for ppc_heathrow_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Alexander Graf <>

cd79664f 06/05/2012 12:00 am Andreas Färber

ppc_oldworld: Pass PowerPCCPU to ppc_heathrow_reset()

Allows us to use cpu_reset() in place of cpu_state_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Alexander Graf <>

a9bf3df0 06/05/2012 12:00 am Andreas Färber

ppc_prep: Use cpu_ppc_init() to obtain PowerPCCPU

Needed for ppc_prep_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Alexander Graf <>

5c3e735f 06/05/2012 12:00 am Andreas Färber

ppc_prep: Pass PowerPCCPU to ppc_prep_reset()

Allows us to use cpu_reset() in place of cpu_state_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Alexander Graf <>

d1d4938b 06/05/2012 12:00 am Andreas Färber

virtex_ml507: Use cpu_ppc_init() to obtain PowerPCCPU

Needed to change ppc440_init_xilinx() return type.

Signed-off-by: Andreas Färber <>
Acked-by: Alexander Graf <>

68281699 06/05/2012 12:00 am Andreas Färber

virtex_ml507: Let ppc440_init_xilinx() return PowerPCCPU

Needed for main_cpu_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Alexander Graf <>

f8031482 06/05/2012 12:00 am Andreas Färber

virtex_ml507: Pass PowerPCCPU to main_cpu_reset()

Allows us to call cpu_reset() in place of cpu_state_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Alexander Graf <>

fd2f410b 06/05/2012 12:00 am Andreas Färber

r2d: Use cpu_sh4_init() to obtain SuperHCPU

Needed for main_cpu_reset().

Signed-off-by: Andreas Färber <>

868bac81 06/05/2012 12:00 am Andreas Färber

r2d: Store SuperHCPU in ResetData

Allows us to use cpu_reset() in place of cpu_state_reset() in
main_cpu_reset().

Signed-off-by: Andreas Färber <>

3bd4122e 06/05/2012 12:00 am Andreas Färber

target-mips: Use cpu_reset() in cpu_mips_init()

Commit 0f71a7095db6bc055bc5bb520d85ea650cca8a33 (target-mips: QOM'ify
CPU) hooked up cpu_state_reset() to CPUClass::reset(). Dropping the
introduction of subclasses for 1.1, due to mips_def_t the reset code...

fca1be7c 06/05/2012 12:00 am Andreas Färber

target-mips: Use cpu_reset() in do_interrupt()

Signed-off-by: Andreas Färber <>

30bf942d 06/05/2012 12:00 am Andreas Färber

target-mips: Let cpu_mips_init() return MIPSCPU

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

Signed-off-by: Andreas Färber <>

f0f80366 06/05/2012 12:00 am Andreas Färber

mips_fulong2e: Use cpu_mips_cpu() to obtain MIPSCPU

Needed for main_cpu_reset().

Signed-off-by: Andreas Färber <>

800cf598 06/05/2012 12:00 am Andreas Färber

mips_fulong2e: Pass MIPSCPU to main_cpu_reset()

Allows us to use cpu_reset() in place of cpu_state_reset().

Signed-off-by: Andreas Färber <>

6bd8da65 06/05/2012 12:00 am Andreas Färber

mips_jazz: Use cpu_mips_init() to obtain MIPSCPU

Needed for main_cpu_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Hervé Poussineau <>

f37f435a 06/05/2012 12:00 am Andreas Färber

mips_jazz: Pass MIPSCPU to main_cpu_reset()

Allows us to use cpu_reset() in place of cpu_state_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Hervé Poussineau <>

7688b134 06/05/2012 12:00 am Andreas Färber

mips_malta: Use cpu_mips_init() to obtain MIPSCPU

Needed for main_cpu_reset().

Signed-off-by: Andreas Färber <>

1004ee8d 06/05/2012 12:00 am Andreas Färber

mips_malta: Pass MIPSCPU to main_cpu_reset()

Allows us to use cpu_reset() in place of cpu_state_reset().

Signed-off-by: Andreas Färber <>

7ee274c1 06/05/2012 12:00 am Andreas Färber

mips_mipssim: Use cpu_mips_init() to obtain MIPSCPU

Needed for main_cpu_reset().

Signed-off-by: Andreas Färber <>

2d44fc8e 06/05/2012 12:00 am Andreas Färber

mips_mipssim: Store MIPSCPU in ResetData

Allows us to use cpu_reset() in place of cpu_state_reset() in
main_cpu_reset().

Signed-off-by: Andreas Färber <>

9ac67e21 06/05/2012 12:00 am Andreas Färber

mips_r4k: Use cpu_mips_init() to obtain MIPSCPU

Needed for main_cpu_reset().

Signed-off-by: Andreas Färber <>

fa156e51 06/05/2012 12:00 am Andreas Färber

mips_r4k: Store MIPSCPU in ResetData

Allows us to use cpu_reset() in place of cpu_state_reset() in
main_cpu_reset().

Signed-off-by: Andreas Färber <>

397b457d 06/05/2012 12:00 am Andreas Färber

target-ppc: Let cpu_ppc_init() return PowerPCCPU

Adapt e500 mpc8544ds machine accordingly.

Turn cpu_init() into a static inline function returning CPUPPCState for
backwards compatibility.

Signed-off-by: Andreas Färber <>
Acked-by: Alexander Graf <>

38f92da6 06/05/2012 12:00 am Andreas Färber

ppce500_mpc8544ds: Pass PowerPCCPU to mpc8544ds_cpu_reset[_sec]

Allows us to use cpu_reset() in place of cpu_state_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Alexander Graf <>

eded1267 06/05/2012 12:00 am Andreas Färber

xtensa_lx60: Pass XtensaCPU to lx60_reset()

Allows us to use cpu_reset() in place of cpu_state_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Max Filippov <>

dd10ce6d 06/05/2012 12:00 am Andreas Färber

target-cris: Reindent cpu_cris_init()

Judging by TCG variable initialization it used 8-char tabs; use 4 spaces
instead. Also remove trailing whitespace.

Signed-off-by: Andreas Färber <>
Acked-by: Edgar E. Iglesias <>

9fca5636 06/05/2012 12:00 am Andreas Färber

target-cris: Let cpu_cris_init() return CRISCPU

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

Signed-off-by: Andreas Färber <>
Acked-by: Edgar E. Iglesias <>

ddeb9ae5 06/05/2012 12:00 am Andreas Färber

axis_dev88: Use cpu_cris_init() to obtain CRISCPU

Needed for cris_load_image().

Signed-off-by: Andreas Färber <>
Acked-by: Edgar E. Iglesias <>

5935664f 06/05/2012 12:00 am Andreas Färber

cris-boot: Pass CRISCPU to cris_load_image()

Needed for main_cpu_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Edgar E. Iglesias <>

1584aafd 06/05/2012 12:00 am Andreas Färber

cris-boot: Pass CRISCPU to main_cpu_reset().

Allows us to use cpu_reset() in place of cpu_state_reset().

Signed-off-by: Andreas Färber <>
Acked-by: Edgar E. Iglesias <>

b33ab1f7 06/05/2012 12:00 am Andreas Färber

target-microblaze: Let cpu_mb_init() return MicroBlazeCPU

Since qemu_init_vcpu() is no-op for CONFIG_USER_ONLY drop the env
variable that is now unused there.

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

a9480e5d 06/05/2012 12:00 am Andreas Färber

petalogix_ml605: Use cpu_mb_init() to obtain MicroBlazeCPU

Needed for microblaze_load_kernel().

Signed-off-by: Andreas Färber <>
Acked-by: Edgar E. Iglesias <>

3ed60733 06/05/2012 12:00 am Andreas Färber

petalogix_s3adsp1800_mmu: Use cpu_mb_init() to obtain MicroBlazeCPU

Needed for microblaze_load_kernel().

Signed-off-by: Andreas Färber <>
Acked-by: Edgar E. Iglesias <>

bf494367 06/05/2012 12:00 am Andreas Färber

microblaze_boot: Pass MicroBlazeCPU to microblaze_load_kernel()

Allows us to use cpu_reset() in place of cpu_state_reset() in
main_cpu_reset().

Also pass it through to its reset callbacks, while at it.

Signed-off-by: Andreas Färber <>
Acked-by: Edgar E. Iglesias <>

232fc23b 06/05/2012 12:00 am Andreas Färber

target-i386: Pass X86CPU to do_cpu_{init,sipi}()

Allows to use cpu_reset() in place of cpu_state_reset().

Signed-off-by: Andreas Färber <>
Reviewed-by: Igor Mammedov <>

b47ed996 06/05/2012 12:00 am Andreas Färber

target-i386: Let cpu_x86_init() return X86CPU

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

Signed-off-by: Andreas Färber <>
Reviewed-by: Igor Mammedov <>

608911ac 06/05/2012 12:00 am Andreas Färber

pc: Use cpu_x86_init() to obtain X86CPU

Needed for pc_cpu_reset().

Also change return type to X86CPU.

Signed-off-by: Andreas Färber <>
Reviewed-by: Igor Mammedov <>

e5fe7a34 06/05/2012 12:00 am Andreas Färber

pc: Pass X86CPU to pc_cpu_reset()

Allows us to use cpu_reset() in place of cpu_state_reset().

Signed-off-by: Andreas Färber <>
Reviewed-by: Igor Mammedov <>

445e9571 06/05/2012 12:00 am Andreas Färber

target-sh4: Let cpu_sh4_init() return SuperHCPU

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

Signed-off-by: Andreas Färber <>