[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 18/19] hw: remove CPU dependencies
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH 18/19] hw: remove CPU dependencies |
Date: |
Mon, 4 Feb 2013 22:30:13 +0000 |
On 4 February 2013 17:30, Paolo Bonzini <address@hidden> wrote:
> Some devices or headers are using poisoned identifiers.
> For .c files, some are useless and we remove them.
>
> For headers, wrap the definitions in the headers with
>
Truncated sentence?
> Signed-off-by: Paolo Bonzini <address@hidden>
> --- a/hw/pci/host-apb.c
> +++ b/hw/pci/host-apb.c
> @@ -92,7 +92,7 @@ static void apb_config_writel (void *opaque, hwaddr addr,
> {
> APBState *s = opaque;
>
> - APB_DPRINTF("%s: addr " TARGET_FMT_lx " val %" PRIx64 "\n", __func__,
> addr, val);
> + APB_DPRINTF("%s: addr " TARGET_FMT_plx " val %" PRIx64 "\n", __func__,
> addr, val);
>
> switch (addr & 0xffff) {
> case 0x30 ... 0x4f: /* DMA error registers */
> @@ -201,7 +201,7 @@ static uint64_t apb_config_readl (void *opaque,
> val = 0;
> break;
> }
> - APB_DPRINTF("%s: addr " TARGET_FMT_lx " -> %x\n", __func__, addr, val);
> + APB_DPRINTF("%s: addr " TARGET_FMT_plx " -> %x\n", __func__, addr, val);
>
> return val;
> }
> @@ -218,7 +218,7 @@ static void apb_pci_config_write(void *opaque, hwaddr
> addr,
> APBState *s = opaque;
>
> val = qemu_bswap_len(val, size);
> - APB_DPRINTF("%s: addr " TARGET_FMT_lx " val %" PRIx64 "\n", __func__,
> addr, val);
> + APB_DPRINTF("%s: addr " TARGET_FMT_plx " val %" PRIx64 "\n", __func__,
> addr, val);
> pci_data_write(s->bus, addr, val, size);
> }
>
> @@ -230,7 +230,7 @@ static uint64_t apb_pci_config_read(void *opaque, hwaddr
> addr,
>
> ret = pci_data_read(s->bus, addr, size);
> ret = qemu_bswap_len(ret, size);
> - APB_DPRINTF("%s: addr " TARGET_FMT_lx " -> %x\n", __func__, addr, ret);
> + APB_DPRINTF("%s: addr " TARGET_FMT_plx " -> %x\n", __func__, addr, ret);
> return ret;
> }
This appears to just be fixing format string errors in debug : should
be a separate patch.
> diff --git a/include/hw/arm/exynos4210.h b/include/hw/arm/exynos4210.h
> index bb9a1dd..8798cbe 100644
> --- a/include/hw/arm/exynos4210.h
> +++ b/include/hw/arm/exynos4210.h
> @@ -84,7 +84,10 @@ typedef struct Exynos4210Irq {
> qemu_irq board_irqs[EXYNOS4210_MAX_INT_COMBINER_IN_IRQ];
> } Exynos4210Irq;
>
> -typedef struct Exynos4210State {
> +typedef struct Exynos4210State Exynos4210State;
> +
> +#ifdef NEED_CPU_H
> +struct Exynos4210State {
> ARMCPU *cpu[EXYNOS4210_NCPUS];
> Exynos4210Irq irqs;
> qemu_irq *irq_table;
> @@ -98,16 +101,17 @@ typedef struct Exynos4210State {
> MemoryRegion boot_secondary;
> MemoryRegion bootreg_mem;
> i2c_bus *i2c_if[EXYNOS4210_I2C_NUMBER];
> -} Exynos4210State;
> +};
>
> void exynos4210_write_secondary(ARMCPU *cpu,
> const struct arm_boot_info *info);
> +#endif
etc
There's a lot of extra ifdeffery being added here. That makes
me wonder if it's really the right way to do this...
-- PMM
- [Qemu-devel] [PATCH 06/19] virtio-9p: remove PCI dependencies from hw/9pfs/, (continued)
- [Qemu-devel] [PATCH 06/19] virtio-9p: remove PCI dependencies from hw/9pfs/, Paolo Bonzini, 2013/02/04
- [Qemu-devel] [PATCH 05/19] virtio-9p: use CONFIG_VIRTFS, not CONFIG_LINUX, Paolo Bonzini, 2013/02/04
- [Qemu-devel] [PATCH 07/19] vt82c686: vt82c686 is not a PCI host bridge, Paolo Bonzini, 2013/02/04
- [Qemu-devel] [PATCH 03/19] hw: move qdev-monitor.o to toplevel directory, Paolo Bonzini, 2013/02/04
- [Qemu-devel] [PATCH 08/19] ppc: do not use ../ in include files, Paolo Bonzini, 2013/02/04
- [Qemu-devel] [PATCH 11/19] hw: make subdirectories for devices, Paolo Bonzini, 2013/02/04
- [Qemu-devel] [PATCH 12/19] hw: move target-independent files to subdirectories, Paolo Bonzini, 2013/02/04
- [Qemu-devel] [PATCH 19/19] hw: compile most devices once, Paolo Bonzini, 2013/02/04
- [Qemu-devel] [PATCH 18/19] hw: remove CPU dependencies, Paolo Bonzini, 2013/02/04
- [Qemu-devel] [PATCH 13/19] hw: move boards and some devices to hw/ARCH, Paolo Bonzini, 2013/02/04
- [Qemu-devel] [PATCH 14/19] hw: use default-configs for more devices instead of hw/ARCH/Makefile.objs, Paolo Bonzini, 2013/02/04
- [Qemu-devel] [PATCH 09/19] hw: include hw header files with full paths, Paolo Bonzini, 2013/02/04
- [Qemu-devel] [PATCH 10/19] hw: move some header files to include/, Paolo Bonzini, 2013/02/04
- [Qemu-devel] [PATCH 16/19] MAINTAINERS: update fo r source code movement, Paolo Bonzini, 2013/02/04
- Re: [Qemu-devel] [PATCH 00/19] hw/ directory restructuring, Andreas Färber, 2013/02/04