[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 1/6] arm: use "struct ARMCPU" in header files
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH 1/6] arm: use "struct ARMCPU" in header files |
Date: |
Tue, 15 Dec 2015 16:05:10 +0000 |
On 15 December 2015 at 14:28, Paolo Bonzini <address@hidden> wrote:
> This removes a dependency on cpu.h. Since this is in most cases the
> _only_ dependency on cpu.h, removing it now makes it easier to
> disentangle qemu-common.h and cpu.h.
>
> Signed-off-by: Paolo Bonzini <address@hidden>
> ---
> hw/arm/strongarm.h | 2 +-
> include/hw/arm/arm.h | 12 +++++++-----
> include/hw/arm/exynos4210.h | 5 +++--
> include/hw/arm/omap.h | 4 +++-
> include/hw/arm/pxa.h | 8 +++++---
> 5 files changed, 19 insertions(+), 12 deletions(-)
>
> diff --git a/hw/arm/strongarm.h b/hw/arm/strongarm.h
> index 2893f94..d87e41d 100644
> --- a/hw/arm/strongarm.h
> +++ b/hw/arm/strongarm.h
> @@ -53,7 +53,7 @@ enum {
> };
>
> typedef struct {
> - ARMCPU *cpu;
> + struct ARMCPU *cpu;
Couldn't we just put the typedef in typedefs.h instead ?
thanks
-- PMM
- [Qemu-devel] [RFC PATCH 0/6] decouple board headers from cpu.h, Paolo Bonzini, 2015/12/15
- [Qemu-devel] [PATCH 2/6] mips: use struct CPUMIPSState to avoid need for cpu.h, Paolo Bonzini, 2015/12/15
- [Qemu-devel] [PATCH 3/6] ppc: use struct to avoid the need for cpu.h, Paolo Bonzini, 2015/12/15
- [Qemu-devel] [PATCH 5/6] coldfire: use "struct M68kCPU" in header files, Paolo Bonzini, 2015/12/15
- [Qemu-devel] [PATCH 4/6] alpha: use AlphaCPU as an opaque type, Paolo Bonzini, 2015/12/15
- [Qemu-devel] [PATCH 1/6] arm: use "struct ARMCPU" in header files, Paolo Bonzini, 2015/12/15
- Re: [Qemu-devel] [PATCH 1/6] arm: use "struct ARMCPU" in header files,
Peter Maydell <=
- [Qemu-devel] [PATCH 6/6] sh: use SuperHCPU struct to avoid cpu.h dependency, Paolo Bonzini, 2015/12/15
- Re: [Qemu-devel] [RFC PATCH 0/6] decouple board headers from cpu.h, Peter Maydell, 2015/12/15