| * PMU emulation helpers for TCG IBM POWER chips |
| * Copyright IBM Corp. 2021 |
| * 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. |
| #define BHRB_TYPE_NORECORD 0x00 |
| #define BHRB_TYPE_CALL 0x01 |
| #define BHRB_TYPE_INDIRECT 0x02 |
| #define BHRB_TYPE_COND 0x04 |
| #define BHRB_TYPE_OTHER 0x08 |
| #define BHRB_TYPE_XL_FORM 0x10 |
| #if defined(TARGET_PPC64) && !defined(CONFIG_USER_ONLY) |
| #define PMC_COUNTER_NEGATIVE_VAL 0x80000000UL |
| void cpu_ppc_pmu_init(CPUPPCState *env); |
| void pmu_mmcr01a_updated(CPUPPCState *env); |
| static inline void cpu_ppc_pmu_init(CPUPPCState *env) { } |
| static inline void pmu_mmcr01a_updated(CPUPPCState *env) { } |