Skip to content

Commit

Permalink
target/ppc: Define TYPE_HOST_POWERPC_CPU in cpu-qom.h
Browse files Browse the repository at this point in the history
TYPE_HOST_POWERPC_CPU is used in various places of cpu_init.c,
in order to restrict "kvm_ppc.h" to sysemu, move this QOM-related
definition to cpu-qom.h.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Greg Kurz <groug@kaod.org>
Message-ID: <20230627115124.19632-5-philmd@linaro.org>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
  • Loading branch information
philmd authored and danielhb committed Jul 7, 2023
1 parent 66453c0 commit be67dd4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions target/ppc/cpu-qom.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ OBJECT_DECLARE_CPU_TYPE(PowerPCCPU, PowerPCCPUClass, POWERPC_CPU)
#define POWERPC_CPU_TYPE_NAME(model) model POWERPC_CPU_TYPE_SUFFIX
#define CPU_RESOLVING_TYPE TYPE_POWERPC_CPU

#define TYPE_HOST_POWERPC_CPU POWERPC_CPU_TYPE_NAME("host")

ObjectClass *ppc_cpu_class_by_name(const char *name);

typedef struct CPUArchState CPUPPCState;
Expand Down
2 changes: 0 additions & 2 deletions target/ppc/kvm_ppc.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
#include "exec/hwaddr.h"
#include "cpu.h"

#define TYPE_HOST_POWERPC_CPU POWERPC_CPU_TYPE_NAME("host")

#ifdef CONFIG_KVM

uint32_t kvmppc_get_tbfreq(void);
Expand Down

0 comments on commit be67dd4

Please sign in to comment.