[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [PATCH 11/15] target: Use ArchCPU as interface to target CPU
From: |
Taylor Simpson |
Subject: |
RE: [PATCH 11/15] target: Use ArchCPU as interface to target CPU |
Date: |
Fri, 11 Feb 2022 02:57:32 +0000 |
> -----Original Message-----
> From: Richard Henderson <richard.henderson@linaro.org>
> Sent: Thursday, February 10, 2022 7:22 PM
> To: Taylor Simpson <tsimpson@quicinc.com>; Philippe Mathieu-Daudé
> <f4bug@amsat.org>; qemu-devel@nongnu.org
> Cc: Paolo Bonzini <pbonzini@redhat.com>; Thomas Huth
> <thuth@redhat.com>
> Subject: Re: [PATCH 11/15] target: Use ArchCPU as interface to target CPU
>
> On 2/11/22 04:35, Taylor Simpson wrote:
> > -#define HEXAGON_CPU_CLASS(klass) \
> > - OBJECT_CLASS_CHECK(HexagonCPUClass, (klass),
> TYPE_HEXAGON_CPU)
> > -#define HEXAGON_CPU(obj) \
> > - OBJECT_CHECK(HexagonCPU, (obj), TYPE_HEXAGON_CPU)
> > -#define HEXAGON_CPU_GET_CLASS(obj) \
> > - OBJECT_GET_CLASS(HexagonCPUClass, (obj), TYPE_HEXAGON_CPU)
> > +OBJECT_DECLARE_TYPE(HexagonCPU, HexagonCPUClass,
> HEXAGON_CPU)
> >
> > typedef struct HexagonCPUClass {
> > /*< private >*/
> >
But it's definitely a smaller change (and matches all of the other targets).
>
> I do think that the conversion to OBJECT_DECLARE_TYPE should happen first,
> via whichever tree you choose.
OK, I'll send a patch. Then, submit a pull request along with the other
changes you just looked at.
Taylor
- [PATCH 07/15] target/i386/tcg/sysemu: Include missing 'exec/exec-all.h' header, (continued)
- [PATCH 07/15] target/i386/tcg/sysemu: Include missing 'exec/exec-all.h' header, Philippe Mathieu-Daudé, 2022/02/09
- [PATCH 08/15] target: Include missing 'cpu.h', Philippe Mathieu-Daudé, 2022/02/09
- [PATCH 09/15] target: Use forward declared type instead of structure type, Philippe Mathieu-Daudé, 2022/02/09
- [PATCH 10/15] target: Use CPUArchState as interface to target-specific CPU state, Philippe Mathieu-Daudé, 2022/02/09
- [PATCH 11/15] target: Use ArchCPU as interface to target CPU, Philippe Mathieu-Daudé, 2022/02/09
[RFC PATCH 12/15] hw/m68k: Restrict M68kCPU type to target/ code, Philippe Mathieu-Daudé, 2022/02/09
[RFC PATCH 13/15] hw/mips: Restrict MIPSCPU type to target/ code, Philippe Mathieu-Daudé, 2022/02/09
[RFC PATCH 14/15] hw/sparc: Restrict SPARCCPU type to target/ code, Philippe Mathieu-Daudé, 2022/02/09
[RFC PATCH 15/15] hw/sh4: Restrict SuperHCPU type to target/ code, Philippe Mathieu-Daudé, 2022/02/09