2021-12-17 17:57:18 +01:00
|
|
|
/*
|
|
|
|
* PMU emulation helpers for TCG IBM POWER chips
|
|
|
|
*
|
|
|
|
* Copyright IBM Corp. 2021
|
|
|
|
*
|
|
|
|
* Authors:
|
|
|
|
* Daniel Henrique Barboza <danielhb413@gmail.com>
|
|
|
|
*
|
|
|
|
* This work is licensed under the terms of the GNU GPL, version 2 or later.
|
|
|
|
* See the COPYING file in the top-level directory.
|
|
|
|
*/
|
|
|
|
|
2022-05-06 15:49:09 +02:00
|
|
|
#ifndef POWER8_PMU_H
|
|
|
|
#define POWER8_PMU_H
|
2021-12-17 17:57:18 +01:00
|
|
|
|
2022-01-04 07:55:34 +01:00
|
|
|
#if defined(TARGET_PPC64) && !defined(CONFIG_USER_ONLY)
|
2022-03-02 06:51:36 +01:00
|
|
|
void cpu_ppc_pmu_init(CPUPPCState *env);
|
2022-01-04 07:55:34 +01:00
|
|
|
void pmu_update_summaries(CPUPPCState *env);
|
|
|
|
#else
|
2022-03-02 06:51:36 +01:00
|
|
|
static inline void cpu_ppc_pmu_init(CPUPPCState *env) { }
|
2022-01-04 07:55:34 +01:00
|
|
|
static inline void pmu_update_summaries(CPUPPCState *env) { }
|
|
|
|
#endif
|
2021-12-17 17:57:18 +01:00
|
|
|
|
|
|
|
#endif
|