acpi: applesmc: use AcpiDevAmlIfClass:build_dev_aml to provide device's AML
[qemu.git] / target / ppc / power8-pmu.h
blob9692dd765e114cb08a49724f962f4a0d741da665
1 /*
2 * PMU emulation helpers for TCG IBM POWER chips
4 * Copyright IBM Corp. 2021
6 * Authors:
7 * Daniel Henrique Barboza <danielhb413@gmail.com>
9 * This work is licensed under the terms of the GNU GPL, version 2 or later.
10 * See the COPYING file in the top-level directory.
13 #ifndef POWER8_PMU_H
14 #define POWER8_PMU_H
16 #if defined(TARGET_PPC64) && !defined(CONFIG_USER_ONLY)
17 void cpu_ppc_pmu_init(CPUPPCState *env);
18 void pmu_update_summaries(CPUPPCState *env);
19 #else
20 static inline void cpu_ppc_pmu_init(CPUPPCState *env) { }
21 static inline void pmu_update_summaries(CPUPPCState *env) { }
22 #endif
24 #endif