Re: [PATCH v12 2/5] target/ppc: make power8-pmu.c CONFIG_TCG only

2022-02-24 Thread Daniel Henrique Barboza
On 2/17/22 19:17, Richard Henderson wrote: On 2/16/22 21:10, Daniel Henrique Barboza wrote:   static void init_tcg_pmu_power8(CPUPPCState *env)   { -#if defined(TARGET_PPC64) && !defined(CONFIG_USER_ONLY) +#if defined(CONFIG_TCG)   /* Init PMU overflow timers */   if (!kvm_enabled())

Re: [PATCH v12 2/5] target/ppc: make power8-pmu.c CONFIG_TCG only

2022-02-17 Thread Richard Henderson
On 2/16/22 21:10, Daniel Henrique Barboza wrote: static void init_tcg_pmu_power8(CPUPPCState *env) { -#if defined(TARGET_PPC64) && !defined(CONFIG_USER_ONLY) +#if defined(CONFIG_TCG) /* Init PMU overflow timers */ if (!kvm_enabled()) { cpu_ppc_pmu_init(env); @@ -7872,10

[PATCH v12 2/5] target/ppc: make power8-pmu.c CONFIG_TCG only

2022-02-16 Thread Daniel Henrique Barboza
This is an exclusive TCG helper. Gating it with CONFIG_TCG and changing meson.build accordingly will prevent problems --disable-tcg and --disable-linux-user later on. Suggested-by: Fabiano Rosas Signed-off-by: Daniel Henrique Barboza --- target/ppc/cpu_init.c | 5 ++--- target/ppc/machine.c