Re: [Qemu-devel] [PATCH RFC 6/6] target-i386: make cpus childs of /machine

2012-05-09 Thread Paolo Bonzini
Il 10/05/2012 01:15, Andreas Färber ha scritto: > In particular I needed /machine/cpu[n] to pass the X86CPU to the APIC in > a sensible way - next commit on that branch, currently: > https://github.com/afaerber/qemu-cpu/commit/1134efc143aa1629f8961ef058416e1acfa50f8e Yay, thanks for doing that! P

[Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static

2012-05-09 Thread David Sugar
I have found several places cmake may hang, with either qemu-arm-static or mipsel, and in debian (testing) as well as in Ubuntu. One of them is the cmake check for c++ compiler, which can be overridden. Things that use cmake's pkg_check_modules and pkg-config files will also hang. Curiously, outs

[Qemu-devel] [Bug 814222] Re: kvm cannot use vhd files over 127GB

2012-05-09 Thread simo
I came here from : http://lists.gnu.org/archive/html/qemu- devel/2011-07/msg02806.html Actually, I experience an issue which may be useful to you. I have a corrupted VHD file (as explained in that thread : https://forums.virtualbox.org/viewtopic.php?f=7&t=20614 ). I wanted to follow that procedur

[Qemu-devel] [PATCH 13/13] iommu: Add a memory barrier to DMA RW function

2012-05-09 Thread Benjamin Herrenschmidt
From: David Gibson The emulated devices can run simultaneously with the guest, so we need to be careful with ordering of load and stores done by them to the guest system memory, which need to be observed in the right order by the guest operating system. The simplest way for now to address that i

[Qemu-devel] [PATCH 08/13] iommu: Introduce IOMMU emulation infrastructure

2012-05-09 Thread Benjamin Herrenschmidt
From: David Gibson This patch adds the basic infrastructure necessary to emulate an IOMMU visible to the guest. The DMAContext structure is extended with information and a callback describing the translation, and the various DMA functions used by devices will now perform IOMMU translation using

[Qemu-devel] [PATCH 11/13] iommu: Allow PCI to use IOMMU infrastructure

2012-05-09 Thread Benjamin Herrenschmidt
From: David Gibson This patch adds some hooks to let PCI devices and busses use the new IOMMU infrastructure. When IOMMU support is enabled, each PCI device now contains a DMAContext * which is used by the pci_dma_*() wrapper functions. By default, the contexts are initialized to NULL, assuming

[Qemu-devel] [PATCH 05/13] iommu: Make sglists and dma_bdrv helpers use new universal DMA helpers

2012-05-09 Thread Benjamin Herrenschmidt
From: David Gibson dma-helpers.c contains a number of helper functions for doing scatter/gather DMA, and various block device related DMA. Currently, these directly access guest memory using cpu_physical_memory_*(), assuming no IOMMU translation. This patch updates this code to use the new univ

[Qemu-devel] [PATCH 03/13] iommu: Add universal DMA helper functions

2012-05-09 Thread Benjamin Herrenschmidt
From: David Gibson Not that long ago, every device implementation using DMA directly accessed guest memory using cpu_physical_memory_*(). This meant that adding support for a guest visible IOMMU would require changing every one of these devices to go through IOMMU translation. Shortly before qe

[Qemu-devel] [PATCH 12/13] pseries: Implement IOMMU and DMA for PAPR PCI devices

2012-05-09 Thread Benjamin Herrenschmidt
From: David Gibson Currently the pseries machine emulation does not support DMA for emulated PCI devices, because the PAPR spec always requires a (guest visible, paravirtualized) IOMMU which was not implemented. Now that we have infrastructure for IOMMU emulation, we can correct this and allow P

[Qemu-devel] [PATCH 07/13] usb: Convert usb_packet_{map, unmap} to universal DMA helpers

2012-05-09 Thread Benjamin Herrenschmidt
From: David Gibson The USB UHCI and EHCI drivers were converted some time ago to use the pci_dma_*() helper functions. However, this conversion was not complete because in some places both these drivers do DMA via the usb_packet_map() function in usb-libhw.c. That function directly used cpu_phy

[Qemu-devel] [PATCH 04/13] usb-ohci: Use universal DMA helper functions

2012-05-09 Thread Benjamin Herrenschmidt
From: David Gibson The OHCI device emulation can provide both PCI and SysBus OHCI implementations. Because of this, it was not previously converted to use the PCI DMA helper functions. This patch converts it to use the new universal DMA helper functions. In the PCI case, it obtains its DMAConte

[Qemu-devel] [PATCH 06/13] ide/ahci: Use universal DMA helper functions

2012-05-09 Thread Benjamin Herrenschmidt
From: David Gibson The AHCI device can provide both PCI and SysBus AHCI device emulations. For this reason, it wasn't previously converted to use the pci_dma_*() helper functions. Now that we have universal DMA helper functions, this converts AHCI to use them. The DMAContext is obtained from p

[Qemu-devel] [PATCH 09/13] iommu: Add facility to cancel in-use dma memory maps

2012-05-09 Thread Benjamin Herrenschmidt
From: David Gibson One new complication raised by IOMMU support over only handling DMA directly to physical addresses is handling dma_memory_map() case (replacing cpu_physical_memory_map()) when the IOMMU translation the IOVAs covered by such a map are invalidated or changed while the map is acti

[Qemu-devel] [PATCH 10/13] pseries: Convert sPAPR TCEs to use generic IOMMU infrastructure

2012-05-09 Thread Benjamin Herrenschmidt
From: David Gibson The pseries platform already contains an IOMMU implementation, since it is essential for the platform's paravirtualized VIO devices. This IOMMU support is currently built into the implementation of the VIO "bus" and the various VIO devices. This patch converts this code to ma

[Qemu-devel] [PATCH 02/13] Implement cpu_physical_memory_zero()

2012-05-09 Thread Benjamin Herrenschmidt
From: David Gibson This patch adds cpu_physical_memory_zero() function. This is equivalent to calling cpu_physical_memory_write() with a buffer full of zeroes, but avoids actually allocating such a buffer along the way. Signed-off-by: David Gibson Signed-off-by: Benjamin Herrenschmidt --- cp

[Qemu-devel] [PATCH 01/13] Better support for dma_addr_t variables

2012-05-09 Thread Benjamin Herrenschmidt
From: David Gibson A while back, we introduced the dma_addr_t type, which is supposed to be used for bus visible memory addresses. At present, this is an alias for target_phys_addr_t, but this will change when we eventually add support for guest visible IOMMUs. There are some instances of targe

[Qemu-devel] [PATCH 00/13] IOMMU infrastructure

2012-05-09 Thread Benjamin Herrenschmidt
Hi folks ! This is a repose (& rebase on top of current HEAD) of David and Eduard iommu patch series which provides the necessary infrastructure for doing DMA through an iommu, along with the SPAPR iommu implementation. David is on vacation, so make sure to CC all comments to me.

[Qemu-devel] [PATCH next v2 41/74] target-lm32: Let cpu_lm32_init() return LM32CPU

2012-05-09 Thread Andreas Färber
Make the include paths for cpu-qom.h consistent to allow using LM32CPU in cpu.h. Turn cpu_init macro into a static inline function returning CPULM32State for backwards compatibility. Signed-off-by: Andreas Färber --- target-lm32/cpu.c|2 +- target-lm32/cpu.h| 12 ++-- targ

[Qemu-devel] [PATCH next v2 52/74] target-cris: Let cpu_cris_init() return CRISCPU

2012-05-09 Thread Andreas Färber
Turn cpu_init macro into a static inline function returning CPUCRISState for backwards compatibility. Signed-off-by: Andreas Färber --- target-cris/cpu.h | 12 ++-- target-cris/translate.c |8 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/target-cri

[Qemu-devel] [PATCH next v2 62/74] mips_fulong2e: Use cpu_mips_cpu() to obtain MIPSCPU

2012-05-09 Thread Andreas Färber
Needed for main_cpu_reset(). Signed-off-by: Andreas Färber --- hw/mips_fulong2e.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/mips_fulong2e.c b/hw/mips_fulong2e.c index 37dc711..8b66e7b 100644 --- a/hw/mips_fulong2e.c +++ b/hw/mips_fulong2e.c @@ -272,17 +272,

[Qemu-devel] [PATCH next v2 02/74] target-mips: Use cpu_reset() in cpu_mips_init()

2012-05-09 Thread Andreas Färber
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 could not be QOM'ified yet, i.e. cpu_state_reset() will not forward to CPUClass::reset(). U

[Qemu-devel] [PATCH next v2 09/74] sun4m: Pass SPARCCPU to {main, secondary}_cpu_reset()

2012-05-09 Thread Andreas Färber
We can now use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber --- hw/sun4m.c | 14 -- 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/hw/sun4m.c b/hw/sun4m.c index c5d2e40..a959261 100644 --- a/hw/sun4m.c +++ b/hw/sun4m.c @@ -281,17 +281,19

[Qemu-devel] [PATCH next v2 40/74] r2d: Store SuperHCPU in ResetData

2012-05-09 Thread Andreas Färber
Allows us to use cpu_reset() in place of cpu_state_reset() in main_cpu_reset(). Signed-off-by: Andreas Färber --- hw/r2d.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/r2d.c b/hw/r2d.c index 1bd8df6..0f16e81 100644 --- a/hw/r2d.c +++ b/hw/r2d.c @@ -192,16 +1

[Qemu-devel] [PATCH next v2 43/74] lm32_boards: Store LM32CPU in ResetInfo

2012-05-09 Thread Andreas Färber
Allows us to use cpu_reset() in place of cpu_state_reset() in main_cpu_reset(). Signed-off-by: Andreas Färber Acked-by: Michael Walle --- hw/lm32_boards.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/lm32_boards.c b/hw/lm32_boards.c index ffb273c..b76d800

[Qemu-devel] [PATCH next v2 19/74] ppc440_bamboo: Use cpu_ppc_init() to obtain PowerPCCPU

2012-05-09 Thread Andreas Färber
Needed for main_cpu_reset(). Signed-off-by: Andreas Färber --- hw/ppc440_bamboo.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/ppc440_bamboo.c b/hw/ppc440_bamboo.c index f0a3ae4..1a4e66a 100644 --- a/hw/ppc440_bamboo.c +++ b/hw/ppc440_bamboo.c @@ -172,6 +172,7

[Qemu-devel] [PATCH next v2 60/74] target-mips: Use cpu_reset() in do_interrupt()

2012-05-09 Thread Andreas Färber
Signed-off-by: Andreas Färber --- target-mips/helper.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/target-mips/helper.c b/target-mips/helper.c index ddf9cb7..4208bb2 100644 --- a/target-mips/helper.c +++ b/target-mips/helper.c @@ -399,6 +399,7 @@ static void set_hfl

[Qemu-devel] [PATCH next v2 49/74] xtensa_lx60: Use cpu_xtensa_init() to obtain XtensaCPU

2012-05-09 Thread Andreas Färber
Allows us to use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber --- hw/xtensa_lx60.c |9 ++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/hw/xtensa_lx60.c b/hw/xtensa_lx60.c index afdef49..31f8adc 100644 --- a/hw/xtensa_lx60.c +++ b/hw/xtensa

[Qemu-devel] [PATCH next v2 72/74] bsd-user: Use cpu_reset() in after cpu_init()

2012-05-09 Thread Andreas Färber
Eliminates cpu_state_reset() usage. Signed-off-by: Andreas Färber --- bsd-user/main.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/bsd-user/main.c b/bsd-user/main.c index 0689e38..cd33d65 100644 --- a/bsd-user/main.c +++ b/bsd-user/main.c @@ -918,7 +918,7 @@ int main

[Qemu-devel] [PATCH next v2 58/74] petalogix_s3adsp1800_mmu: Use cpu_mb_init() to obtain MicroBlazeCPU

2012-05-09 Thread Andreas Färber
Needed for microblaze_load_kernel(). Signed-off-by: Andreas Färber --- hw/petalogix_s3adsp1800_mmu.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/hw/petalogix_s3adsp1800_mmu.c b/hw/petalogix_s3adsp1800_mmu.c index 8b37336..7ff3cd5 100644 --- a/hw/petalogix_s3adsp18

[Qemu-devel] [PATCH next v2 10/74] sun4u: Use cpu_sparc_init() to obtain SPARCCPU

2012-05-09 Thread Andreas Färber
This prepares using it in sun4uv_init(). Signed-off-by: Andreas Färber --- hw/sun4u.c |9 ++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/hw/sun4u.c b/hw/sun4u.c index fe33138..8bb8557 100644 --- a/hw/sun4u.c +++ b/hw/sun4u.c @@ -746,6 +746,7 @@ static TypeInfo ram_i

[Qemu-devel] [PATCH next v2 21/74] ppc4xx_devs: Use cpu_ppc_init() to obtain PowerPCCPU

2012-05-09 Thread Andreas Färber
Needed for ppc4xx_reset(). Signed-off-by: Andreas Färber --- hw/ppc4xx_devs.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/hw/ppc4xx_devs.c b/hw/ppc4xx_devs.c index 00e36f4..4cefd75 100644 --- a/hw/ppc4xx_devs.c +++ b/hw/ppc4xx_devs.c @@ -51,15 +51,18 @@ CPUPPCS

[Qemu-devel] [PATCH next v2 29/74] virtex_ml507: Use cpu_ppc_init() to obtain PowerPCCPU

2012-05-09 Thread Andreas Färber
Needed to change ppc440_init_xilinx() return type. Signed-off-by: Andreas Färber --- hw/virtex_ml507.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/virtex_ml507.c b/hw/virtex_ml507.c index 4a133b5..3013016 100644 --- a/hw/virtex_ml507.c +++ b/hw/virtex_ml507.c

[Qemu-devel] [PATCH next v2 47/74] xtensa_sim: Use cpu_xtensa_init() to obtain XtensaCPU

2012-05-09 Thread Andreas Färber
Needed for sim_reset(). Signed-off-by: Andreas Färber --- hw/xtensa_sim.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/hw/xtensa_sim.c b/hw/xtensa_sim.c index c7e05dc..dae08a1 100644 --- a/hw/xtensa_sim.c +++ b/hw/xtensa_sim.c @@ -47,16 +47,19 @@ static void sim

[Qemu-devel] [PATCH next v2 15/74] target-ppc: Let cpu_ppc_init() return PowerPCCPU

2012-05-09 Thread Andreas Färber
Adapt e500 mpc8544ds machine accordingly. Turn cpu_init() into a static inline function returning CPUPPCState for backwards compatibility. Signed-off-by: Andreas Färber --- hw/ppce500_mpc8544ds.c |7 +-- target-ppc/cpu.h | 12 ++-- target-ppc/helper.c|4 ++-- 3 f

[Qemu-devel] [PATCH next v2 42/74] lm32_boards: Use cpu_lm32_init() to obtain LM32CPU

2012-05-09 Thread Andreas Färber
Needed for main_cpu_reset(). Signed-off-by: Andreas Färber Acked-by: Michael Walle --- hw/lm32_boards.c |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/hw/lm32_boards.c b/hw/lm32_boards.c index 4dd4f0a..ffb273c 100644 --- a/hw/lm32_boards.c +++ b/hw/lm32_boards.c

[Qemu-devel] [PATCH next v2 28/74] ppc_prep: Pass PowerPCCPU to ppc_prep_reset()

2012-05-09 Thread Andreas Färber
Allows us to use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber --- hw/ppc_prep.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/ppc_prep.c b/hw/ppc_prep.c index 0b880a5..be2b268 100644 --- a/hw/ppc_prep.c +++ b/hw/ppc_prep.c @@ -441,9

[Qemu-devel] [PATCH next v2 32/74] cpu-exec: Use cpu_reset() in cpu_exec() for TARGET_PPC

2012-05-09 Thread Andreas Färber
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 Cc: Alexander Graf Cc: qemu-ppc --- cpu-exec.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/cpu-exec.c b/cpu-exec.c index f

[Qemu-devel] [PATCH next v2 27/74] ppc_prep: Use cpu_ppc_init() to obtain PowerPCCPU

2012-05-09 Thread Andreas Färber
Needed for ppc_prep_reset(). Signed-off-by: Andreas Färber --- hw/ppc_prep.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/hw/ppc_prep.c b/hw/ppc_prep.c index b1da114..0b880a5 100644 --- a/hw/ppc_prep.c +++ b/hw/ppc_prep.c @@ -455,6 +455,7 @@ static void ppc_prep

[Qemu-devel] [PATCH next v2 51/74] target-cris: Reindent cpu_cris_init()

2012-05-09 Thread Andreas Färber
Judging by TCG variable initialization it used 8-char tabs; use 4 spaces instead. Also remove trailing whitespace. Signed-off-by: Andreas Färber --- target-cris/translate.c | 103 --- 1 files changed, 52 insertions(+), 51 deletions(-) diff --git a/ta

[Qemu-devel] [PATCH next v2 17/74] spapr: Use cpu_ppc_init() to obtain PowerPCCPU

2012-05-09 Thread Andreas Färber
Needed for spapr_cpu_reset(). Signed-off-by: Andreas Färber --- hw/spapr.c |8 +--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/hw/spapr.c b/hw/spapr.c index cca20f9..2672330 100644 --- a/hw/spapr.c +++ b/hw/spapr.c @@ -518,6 +518,7 @@ static void ppc_spapr_init(ram_ad

[Qemu-devel] [PATCH next v2 33/74] pxa2xx: Use cpu_arm_init() and store ARMCPU

2012-05-09 Thread Andreas Färber
Also use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber --- hw/mainstone.c |2 +- hw/pxa.h |2 +- hw/pxa2xx.c| 40 hw/spitz.c |2 +- hw/tosa.c |2 +- hw/z2.c|2 +- 6 files changed,

[Qemu-devel] [PATCH next v2 67/74] mips_malta: Pass MIPSCPU to main_cpu_reset()

2012-05-09 Thread Andreas Färber
Allows us to use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber --- hw/mips_malta.c |8 +--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/hw/mips_malta.c b/hw/mips_malta.c index d81e8d5..dfd7b6b 100644 --- a/hw/mips_malta.c +++ b/hw/mips_malta.

[Qemu-devel] [PATCH next v2 35/74] armv7m: Use cpu_arm_init() to obtain ARMCPU

2012-05-09 Thread Andreas Färber
Needed for armv7m_reset(). Signed-off-by: Andreas Färber --- hw/armv7m.c |9 ++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/hw/armv7m.c b/hw/armv7m.c index 4aac076..4e5971c 100644 --- a/hw/armv7m.c +++ b/hw/armv7m.c @@ -160,6 +160,7 @@ qemu_irq *armv7m_init(MemoryRe

[Qemu-devel] [PATCH next v2 11/74] sun4u: Let cpu_devinit() return SPARCCPU

2012-05-09 Thread Andreas Färber
Needed for main_cpu_reset(). Signed-off-by: Andreas Färber --- hw/sun4u.c |8 +--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/hw/sun4u.c b/hw/sun4u.c index 8bb8557..df1aada 100644 --- a/hw/sun4u.c +++ b/hw/sun4u.c @@ -744,7 +744,7 @@ static TypeInfo ram_info = {

[Qemu-devel] [PATCH next v2 31/74] virtex_ml507: Pass PowerPCCPU to main_cpu_reset()

2012-05-09 Thread Andreas Färber
Allows us to call cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber --- hw/virtex_ml507.c |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/hw/virtex_ml507.c b/hw/virtex_ml507.c index 0e223bd..cace86b 100644 --- a/hw/virtex_ml507.c +++ b/hw/vir

[Qemu-devel] [PATCH next v2 20/74] ppc440_bamboo: Pass PowerPCCPU to main_cpu_reset()

2012-05-09 Thread Andreas Färber
Allows us to use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber --- hw/ppc440_bamboo.c |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/hw/ppc440_bamboo.c b/hw/ppc440_bamboo.c index 1a4e66a..0dd4dab 100644 --- a/hw/ppc440_bamboo.c +++ b/hw/

[Qemu-devel] [PATCH next v2 45/74] milkymist: Store LM32 in ResetInfo

2012-05-09 Thread Andreas Färber
Allows us to use cpu_reset() in place of cpu_state_reset() in main_cpu_reset(). Signed-off-by: Andreas Färber Acked-by: Michael Walle --- hw/milkymist.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/milkymist.c b/hw/milkymist.c index 59f37b4..2e7235b 100644

[Qemu-devel] [PATCH next v2 08/74] sun4m: Use cpu_sparc_init() to obtain SPARCCPU

2012-05-09 Thread Andreas Färber
Needed for {main,secondary}_cpu_reset(). Signed-off-by: Andreas Färber --- hw/sun4m.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/sun4m.c b/hw/sun4m.c index 34088ad..c5d2e40 100644 --- a/hw/sun4m.c +++ b/hw/sun4m.c @@ -809,13 +809,15 @@ static TypeInfo ram_in

[Qemu-devel] [PATCH next v2 54/74] cris-boot: Pass CRISCPU to cris_load_image()

2012-05-09 Thread Andreas Färber
Needed for main_cpu_reset(). Signed-off-by: Andreas Färber --- hw/axis_dev88.c |2 +- hw/cris-boot.c |3 ++- hw/cris-boot.h |2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/hw/axis_dev88.c b/hw/axis_dev88.c index 636708c..eab6327 100644 --- a/hw/axis_dev88.c ++

[Qemu-devel] [PATCH next v2 14/74] leon3: Store SPARCCPU in ResetData

2012-05-09 Thread Andreas Färber
Allows us to use cpu_reset() in place of cpu_state_reset() in main_cpu_reset(). Signed-off-by: Andreas Färber --- hw/leon3.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/leon3.c b/hw/leon3.c index 8ffef83..878d3aa 100644 --- a/hw/leon3.c +++ b/hw/leon3.c @@

[Qemu-devel] [PATCH next v2 69/74] mips_mipssim: Store MIPSCPU in ResetData

2012-05-09 Thread Andreas Färber
Allows us to use cpu_reset() in place of cpu_state_reset() in main_cpu_reset(). Signed-off-by: Andreas Färber --- hw/mips_mipssim.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/mips_mipssim.c b/hw/mips_mipssim.c index 7c510da..eb03047 100644 --- a/hw/mips_mi

[Qemu-devel] [PATCH next v2 22/74] ppc4xx_devs: Pass PowerPCCPU to ppc4xx_reset()

2012-05-09 Thread Andreas Färber
Allows us to use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber --- hw/ppc4xx_devs.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/ppc4xx_devs.c b/hw/ppc4xx_devs.c index 4cefd75..41163e6 100644 --- a/hw/ppc4xx_devs.c +++ b/hw/ppc4xx_de

[Qemu-devel] [PATCH next v2 24/74] ppc_newworld: Pass PowerPCCPU to ppc_core99_reset()

2012-05-09 Thread Andreas Färber
Allows us to use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber --- hw/ppc_newworld.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/ppc_newworld.c b/hw/ppc_newworld.c index 6f7f1b5..4e2a6e6 100644 --- a/hw/ppc_newworld.c +++ b/hw/ppc_n

[Qemu-devel] [PATCH next v2 23/74] ppc_newworld: Use cpu_ppc_init() to obtain PowerPCCPU

2012-05-09 Thread Andreas Färber
Needed for ppc_core99_reset(). Signed-off-by: Andreas Färber --- hw/ppc_newworld.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/hw/ppc_newworld.c b/hw/ppc_newworld.c index 8796510..6f7f1b5 100644 --- a/hw/ppc_newworld.c +++ b/hw/ppc_newworld.c @@ -136,6 +136,7 @

[Qemu-devel] [PATCH next v2 16/74] ppce500_mpc8544ds: Pass PowerPCCPU to mpc8544ds_cpu_reset[_sec]

2012-05-09 Thread Andreas Färber
Allows us to use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber --- hw/ppce500_mpc8544ds.c | 14 -- 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/hw/ppce500_mpc8544ds.c b/hw/ppce500_mpc8544ds.c index 88a2767..3eb8a23 100644 --- a/hw/ppce50

[Qemu-devel] [PATCH next v2 63/74] mips_fulong2e: Pass MIPSCPU to main_cpu_reset()

2012-05-09 Thread Andreas Färber
Allows us to use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber --- hw/mips_fulong2e.c |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/hw/mips_fulong2e.c b/hw/mips_fulong2e.c index 8b66e7b..9a12a76 100644 --- a/hw/mips_fulong2e.c +++ b/hw/

[Qemu-devel] [PATCH next v2 34/74] omap: Use cpu_arm_init() to store ARMCPU in omap_mpu_state_s

2012-05-09 Thread Andreas Färber
Fix tab indentations of comments, add braces, use cpu_reset(). Signed-off-by: Andreas Färber --- hw/nseries.c |6 +++--- hw/omap.h |2 +- hw/omap1.c| 20 +++- hw/omap2.c|8 hw/omap_sx1.c |2 +- hw/palm.c |2 +- 6 files changed, 21 i

[Qemu-devel] [PATCH next v2 66/74] mips_malta: Use cpu_mips_init() to obtain MIPSCPU

2012-05-09 Thread Andreas Färber
Needed for main_cpu_reset(). Signed-off-by: Andreas Färber --- hw/mips_malta.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/hw/mips_malta.c b/hw/mips_malta.c index 4752bb2..d81e8d5 100644 --- a/hw/mips_malta.c +++ b/hw/mips_malta.c @@ -788,6 +788,7 @@ void mips_

[Qemu-devel] [PATCH next v2 00/74] QOM CPUState, part 3: CPU reset

2012-05-09 Thread Andreas Färber
Hello, Based on my CPUState patches for 1.1 (qom-cpu-1.1) this series kills off the cpu_state_reset() function, which had been renamed as an interim solution to free the identifier "cpu_reset" for QOM. The interested observer may note that the earlier sh4 SH7750 patches (that have been deferred d

[Qemu-devel] [PATCH next v2 61/74] target-mips: Let cpu_mips_init() return MIPSCPU

2012-05-09 Thread Andreas Färber
Turn cpu_init macro into a static inline function returning CPUMIPSState for backwards compatibility. Signed-off-by: Andreas Färber --- target-mips/cpu.h | 12 ++-- target-mips/translate.c |4 ++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/target-mips/cp

[Qemu-devel] [PATCH next v2 26/74] ppc_oldworld: Pass PowerPCCPU to ppc_heathrow_reset()

2012-05-09 Thread Andreas Färber
Allows us to use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber --- hw/ppc_oldworld.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/ppc_oldworld.c b/hw/ppc_oldworld.c index ba8f3ad..f2c6908 100644 --- a/hw/ppc_oldworld.c +++ b/hw/ppc_o

[Qemu-devel] [PATCH next v2 07/74] target-sparc: Let cpu_sparc_init() return SPARCCPU

2012-05-09 Thread Andreas Färber
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 --- target-sparc/cpu.c |4 ++-- target-sparc/cpu.h | 17 ++--

[Qemu-devel] [PATCH next v2 37/74] arm_boot: Pass ARMCPU to do_cpu_reset()

2012-05-09 Thread Andreas Färber
Allows us to use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber --- hw/arm_boot.c |9 ++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/hw/arm_boot.c b/hw/arm_boot.c index 7447f5c..eb2d176 100644 --- a/hw/arm_boot.c +++ b/hw/arm_boot.c @@ -274

[Qemu-devel] [PATCH next v2 65/74] mips_jazz: Pass MIPSCPU to main_cpu_reset()

2012-05-09 Thread Andreas Färber
Allows us to use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber --- hw/mips_jazz.c |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/hw/mips_jazz.c b/hw/mips_jazz.c index 24959e0..bf1b799 100644 --- a/hw/mips_jazz.c +++ b/hw/mips_jazz.c @@ -

[Qemu-devel] [PATCH next v2 36/74] armv7m: Pass ARMCPU to armv7m_reset()

2012-05-09 Thread Andreas Färber
Allows us to use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber --- hw/armv7m.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/armv7m.c b/hw/armv7m.c index 4e5971c..418139a 100644 --- a/hw/armv7m.c +++ b/hw/armv7m.c @@ -149,7 +149,9 @@

[Qemu-devel] [PATCH next v2 53/74] axis_dev88: Use cpu_cris_init() to obtain CRISCPU

2012-05-09 Thread Andreas Färber
Needed for cris_load_image(). Signed-off-by: Andreas Färber --- hw/axis_dev88.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/hw/axis_dev88.c b/hw/axis_dev88.c index 2304e35..636708c 100644 --- a/hw/axis_dev88.c +++ b/hw/axis_dev88.c @@ -247,6 +247,7 @@ void axisdev

[Qemu-devel] [PATCH next v2 03/74] target-i386: Pass X86CPU to do_cpu_{init, sipi}()

2012-05-09 Thread Andreas Färber
Allows to use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber --- cpu-exec.c |4 ++-- target-i386/cpu.h|4 ++-- target-i386/helper.c | 13 - target-i386/kvm.c|6 -- 4 files changed, 16 insertions(+), 11 deletions(-) diff -

Re: [Qemu-devel] PATCH v5 0/7] RTC: New logic to emulate RTC

2012-05-09 Thread Zhang, Yang Z
> -Original Message- > From: Paolo Bonzini [mailto:pbonz...@redhat.com] > Sent: Wednesday, May 09, 2012 9:07 PM > Subject: Re: PATCH v5 0/7] RTC: New logic to emulate RTC > > > At last this passes my tests, great! There's still a few problems, but more > or less it's ok: > > 1) it needs

[Qemu-devel] [PATCH next v2 74/74] Kill off cpu_state_reset()

2012-05-09 Thread Andreas Färber
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 implementations except for the one in target-mips and

[Qemu-devel] [PATCH next v2 04/74] target-i386: Let cpu_x86_init() return X86CPU

2012-05-09 Thread Andreas Färber
Turn cpu_init macro into a static inline function returning CPUX86State for backwards compatibility. Signed-off-by: Andreas Färber --- target-i386/cpu.h| 12 ++-- target-i386/helper.c |4 ++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/target-i386/cpu.h b/t

[Qemu-devel] [PATCH next v2 38/74] target-sh4: Let cpu_sh4_init() return SuperHCPU

2012-05-09 Thread Andreas Färber
Turn cpu_init macro into a static inline function returning CPUSH4State for backwards compatibility. Signed-off-by: Andreas Färber --- target-sh4/cpu.h | 12 ++-- target-sh4/translate.c |4 ++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/target-sh4/cpu.h

[Qemu-devel] [PATCH next v2 46/74] target-xtensa: Let cpu_xtensa_init() return XtensaCPU

2012-05-09 Thread Andreas Färber
Make the include paths for cpu-qom.h consistent to allow using XtensaCPU in cpu.h. Turn cpu_init macro into a static inline function returning CPUXtensaState for backwards compatibility. Signed-off-by: Andreas Färber --- target-xtensa/cpu.c|2 +- target-xtensa/cpu.h| 16 ++

[Qemu-devel] [PATCH next v2 59/74] microblaze_boot: Pass MicroBlazeCPU to microblaze_load_kernel()

2012-05-09 Thread Andreas Färber
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 --- hw/microblaze_boot.c | 16 hw/microblaze_boot.h |4 ++-- hw/petalogix_ml605_mmu.c

Re: [Qemu-devel] Re : Re : [SeaBIOS] : Memory problem with Qemu/SeaBIOS

2012-05-09 Thread Kevin O'Connor
On Wed, May 09, 2012 at 08:44:45PM -0400, Kevin O'Connor wrote: > On Wed, May 09, 2012 at 08:57:53AM -0700, Alain Ribière wrote: > > I wonder what is the CDOS system at 0D4000... It seems a bit strange. > > Very odd. This is still controlled by seabios. Indeed, if I apply > this (clearly incorre

[Qemu-devel] buildbot failure in qemu on block_mingw32

2012-05-09 Thread qemu
The Buildbot has detected a new failure on builder block_mingw32 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/block_mingw32/builds/208 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: kraxel_rhel61 Build Reason: The

[Qemu-devel] [PATCH next v2 12/74] sun4u: Store SPARCCPU in ResetData

2012-05-09 Thread Andreas Färber
We can now use cpu_reset() in place of cpu_state_reset() in main_cpu_reset(). Signed-off-by: Andreas Färber --- hw/sun4u.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/sun4u.c b/hw/sun4u.c index df1aada..feede80 100644 --- a/hw/sun4u.c +++ b/hw/sun4u.c @@ -3

[Qemu-devel] [PATCH next v2 30/74] virtex_ml507: Let ppc440_init_xilinx() return PowerPCCPU

2012-05-09 Thread Andreas Färber
Needed for main_cpu_reset(). Signed-off-by: Andreas Färber --- hw/virtex_ml507.c | 14 -- 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/hw/virtex_ml507.c b/hw/virtex_ml507.c index 3013016..0e223bd 100644 --- a/hw/virtex_ml507.c +++ b/hw/virtex_ml507.c @@ -78,10 +78

[Qemu-devel] [PATCH next v2 13/74] leon3: Use cpu_sparc_init() to obtain SPARCCPU

2012-05-09 Thread Andreas Färber
Needed for main_cpu_reset(). Signed-off-by: Andreas Färber --- hw/leon3.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/leon3.c b/hw/leon3.c index 0a5ff16..8ffef83 100644 --- a/hw/leon3.c +++ b/hw/leon3.c @@ -101,6 +101,7 @@ static void leon3_generic_hw_init(ra

[Qemu-devel] [PATCH next v2 06/74] pc: Pass X86CPU to pc_cpu_reset()

2012-05-09 Thread Andreas Färber
Allows us to use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber --- hw/pc.c |9 + 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/hw/pc.c b/hw/pc.c index 4715f7a..4167782 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -934,9 +934,10 @@ void pc_acpi_smi

[Qemu-devel] [PATCH next v2 18/74] spapr: Pass PowerPCCPU to spapr_cpu_reset()

2012-05-09 Thread Andreas Färber
Allows us to use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber --- hw/spapr.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/spapr.c b/hw/spapr.c index 2672330..d0bddbc 100644 --- a/hw/spapr.c +++ b/hw/spapr.c @@ -505,9 +505,9 @@ stati

[Qemu-devel] [PATCH next v2 57/74] petalogix_ml605: Use cpu_mb_init() to obtain MicroBlazeCPU

2012-05-09 Thread Andreas Färber
Needed for microblaze_load_kernel(). Signed-off-by: Andreas Färber --- hw/petalogix_ml605_mmu.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/hw/petalogix_ml605_mmu.c b/hw/petalogix_ml605_mmu.c index 31a4348..6819241 100644 --- a/hw/petalogix_ml605_mmu.c +++ b/hw/pe

Re: [Qemu-devel] Re : Re : [SeaBIOS] : Memory problem with Qemu/SeaBIOS

2012-05-09 Thread Kevin O'Connor
On Wed, May 09, 2012 at 08:57:53AM -0700, Alain Ribière wrote: > Tanks for your answer. > > > I have to apologize, I made a mistake. I rechecked my application and used > git bisect. > So I found that this is not a SeaBIOS issue (actually it's more a C-DOS > issues...). My problem comes from th

[Qemu-devel] [PATCH next v2 25/74] ppc_oldworld: Use cpu_ppc_init() to obtain PowerPCCPU

2012-05-09 Thread Andreas Färber
Needed for ppc_heathrow_reset(). Signed-off-by: Andreas Färber --- hw/ppc_oldworld.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/hw/ppc_oldworld.c b/hw/ppc_oldworld.c index 7e73d37..ba8f3ad 100644 --- a/hw/ppc_oldworld.c +++ b/hw/ppc_oldworld.c @@ -80,6 +80,7 @

[Qemu-devel] [PATCH next v2 44/74] milkymist: Use cpu_lm32_init() to obtain LM32CPU

2012-05-09 Thread Andreas Färber
Needed for main_cpu_reset(). Signed-off-by: Andreas Färber Acked-by: Michael Walle --- hw/milkymist.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/hw/milkymist.c b/hw/milkymist.c index 8bb6a97..59f37b4 100644 --- a/hw/milkymist.c +++ b/hw/milkymist.c @@ -79,6 +79,

[Qemu-devel] [PATCH next v2 05/74] pc: Use cpu_x86_init() to obtain X86CPU

2012-05-09 Thread Andreas Färber
Needed for pc_cpu_reset(). Also change return type to X86CPU. Signed-off-by: Andreas Färber --- hw/pc.c | 10 ++ 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/hw/pc.c b/hw/pc.c index 4d34a33..4715f7a 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -940,21 +940,23 @@ static void

[Qemu-devel] [PATCH next v2 73/74] linux-user: Use cpu_reset() after cpu_init() / cpu_copy()

2012-05-09 Thread Andreas Färber
Eliminates cpu_state_reset() usage. Signed-off-by: Andreas Färber --- linux-user/main.c|2 +- linux-user/syscall.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/linux-user/main.c b/linux-user/main.c index 191b750..49108b8 100644 --- a/linux-user/main.c +++ b/l

[Qemu-devel] [PATCH next v2 68/74] mips_mipssim: Use cpu_mips_init() to obtain MIPSCPU

2012-05-09 Thread Andreas Färber
Needed for main_cpu_reset(). Signed-off-by: Andreas Färber --- hw/mips_mipssim.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/hw/mips_mipssim.c b/hw/mips_mipssim.c index 1ea7b58..7c510da 100644 --- a/hw/mips_mipssim.c +++ b/hw/mips_mipssim.c @@ -140,6 +140,7 @@

[Qemu-devel] [PATCH next v2 71/74] mips_r4k: Store MIPSCPU in ResetData

2012-05-09 Thread Andreas Färber
Allows us to use cpu_reset() in place of cpu_state_reset() in main_cpu_reset(). Signed-off-by: Andreas Färber --- hw/mips_r4k.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/mips_r4k.c b/hw/mips_r4k.c index f89957c..d685999 100644 --- a/hw/mips_r4k.c +++ b/hw

[Qemu-devel] [PATCH next v2 70/74] mips_r4k: Use cpu_mips_init() to obtain MIPSCPU

2012-05-09 Thread Andreas Färber
Needed for main_cpu_reset(). Signed-off-by: Andreas Färber --- hw/mips_r4k.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/hw/mips_r4k.c b/hw/mips_r4k.c index e2da49c..f89957c 100644 --- a/hw/mips_r4k.c +++ b/hw/mips_r4k.c @@ -162,6 +162,7 @@ void mips_r4k_init (

[Qemu-devel] [PATCH next v2 64/74] mips_jazz: Use cpu_mips_init() to obtain MIPSCPU

2012-05-09 Thread Andreas Färber
Needed for main_cpu_reset(). Signed-off-by: Andreas Färber --- hw/mips_jazz.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/mips_jazz.c b/hw/mips_jazz.c index a6bc7ba..24959e0 100644 --- a/hw/mips_jazz.c +++ b/hw/mips_jazz.c @@ -112,6 +112,7 @@ static void mips

[Qemu-devel] [PATCH next v2 56/74] target-microblaze: Let cpu_mb_init() return MicroBlazeCPU

2012-05-09 Thread Andreas Färber
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. Signed-off-by: Andreas Färber --- target-microblaze/cpu.h | 12 ++-- target-mi

[Qemu-devel] [PATCH next v2 55/74] cris-boot: Pass CRISCPU to main_cpu_reset().

2012-05-09 Thread Andreas Färber
Allows us to use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber --- hw/cris-boot.c |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/hw/cris-boot.c b/hw/cris-boot.c index 331b2d1..b21326f 100644 --- a/hw/cris-boot.c +++ b/hw/cris-boot.c @@ -

[Qemu-devel] [PATCH next v2 48/74] xtensa_sim: Pass XtensaCPU to sim_reset()

2012-05-09 Thread Andreas Färber
Allows us to use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber --- hw/xtensa_sim.c | 10 ++ 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/hw/xtensa_sim.c b/hw/xtensa_sim.c index dae08a1..1ce07fb 100644 --- a/hw/xtensa_sim.c +++ b/hw/xtensa_si

[Qemu-devel] [PATCH next v2 50/74] xtensa_lx60: Pass XtensaCPU to lx60_reset()

2012-05-09 Thread Andreas Färber
Allows us to use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber --- hw/xtensa_lx60.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/xtensa_lx60.c b/hw/xtensa_lx60.c index 31f8adc..b153bfd 100644 --- a/hw/xtensa_lx60.c +++ b/hw/xtensa_lx

[Qemu-devel] [PATCH next v2 39/74] r2d: Use cpu_sh4_init() to obtain SuperHCPU

2012-05-09 Thread Andreas Färber
Needed for main_cpu_reset(). Signed-off-by: Andreas Färber --- hw/r2d.c | 10 +++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/hw/r2d.c b/hw/r2d.c index c55de01..1bd8df6 100644 --- a/hw/r2d.c +++ b/hw/r2d.c @@ -224,6 +224,7 @@ static void r2d_init(ram_addr_t ram_size,

[Qemu-devel] [PATCH next v2 01/74] target-arm: Use cpu_reset() in cpu_arm_init()

2012-05-09 Thread Andreas Färber
Commit 3c30dd5a68e9fee6af67cfd0d14ed7520820f36a (target-arm: Move reset handling to arm_cpu_reset) QOM'ified CPU reset. Complete it by replacing cpu_state_reset() with cpu_reset(). Signed-off-by: Andreas Färber --- target-arm/helper.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-)

[Qemu-devel] [PATCH next v2 02/74] target-mips: Use cpu_reset() in cpu_mips_init()

2012-05-09 Thread Andreas Färber
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 could not be QOM'ified yet, i.e. cpu_state_reset() will not forward to CPUClass::reset(). U

[Qemu-devel] [PATCH next v2 00/74] QOM CPUState, part 3: CPU reset

2012-05-09 Thread Andreas Färber
Hello, Based on my CPUState patches for 1.1 (qom-cpu-1.1) this series kills off the cpu_state_reset() function, which had been renamed as an interim solution to free the identifier "cpu_reset" for QOM. The interested observer may note that the earlier sh4 SH7750 patches (that have been deferred d

[Qemu-devel] [PATCH next v2 01/74] target-arm: Use cpu_reset() in cpu_arm_init()

2012-05-09 Thread Andreas Färber
Commit 3c30dd5a68e9fee6af67cfd0d14ed7520820f36a (target-arm: Move reset handling to arm_cpu_reset) QOM'ified CPU reset. Complete it by replacing cpu_state_reset() with cpu_reset(). Signed-off-by: Andreas Färber --- target-arm/helper.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-)

[Qemu-devel] [PATCH next v2 03/74] target-i386: Pass X86CPU to do_cpu_{init, sipi}()

2012-05-09 Thread Andreas Färber
Allows to use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber --- cpu-exec.c |4 ++-- target-i386/cpu.h|4 ++-- target-i386/helper.c | 13 - target-i386/kvm.c|6 -- 4 files changed, 16 insertions(+), 11 deletions(-) diff -

  1   2   3   4   >