diff options
author | Daniel Henrique Barboza <danielhb413@gmail.com> | 2022-03-02 06:51:36 +0100 |
---|---|---|
committer | Cédric Le Goater <clg@kaod.org> | 2022-03-02 06:51:36 +0100 |
commit | 33edcde7c8e0a94e93dc4fcc47b70e8f90891581 (patch) | |
tree | 57bfda8588bfe8c94765fd886f45cd3d2e46db7d /target/ppc/meson.build | |
parent | 6e7b96750359e17a09dcf8fb7fb5ce02447c3d69 (diff) | |
download | qemu-33edcde7c8e0a94e93dc4fcc47b70e8f90891581.zip qemu-33edcde7c8e0a94e93dc4fcc47b70e8f90891581.tar.gz qemu-33edcde7c8e0a94e93dc4fcc47b70e8f90891581.tar.bz2 |
target/ppc: make power8-pmu.c CONFIG_TCG only
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.
We're also changing the uses of !kvm_enabled() to tcg_enabled() to avoid
adding "defined(CONFIG_TCG)" ifdefs, since tcg_enabled() will be
defaulted to false with --disable-tcg and the block will always be
skipped.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Message-Id: <20220225101140.1054160-2-danielhb413@gmail.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Diffstat (limited to 'target/ppc/meson.build')
-rw-r--r-- | target/ppc/meson.build | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/ppc/meson.build b/target/ppc/meson.build index a49a891..79beaff 100644 --- a/target/ppc/meson.build +++ b/target/ppc/meson.build @@ -16,6 +16,7 @@ ppc_ss.add(when: 'CONFIG_TCG', if_true: files( 'misc_helper.c', 'timebase_helper.c', 'translate.c', + 'power8-pmu.c', )) ppc_ss.add(libdecnumber) @@ -51,7 +52,6 @@ ppc_softmmu_ss.add(when: 'TARGET_PPC64', if_true: files( 'mmu-book3s-v3.c', 'mmu-hash64.c', 'mmu-radix64.c', - 'power8-pmu.c', )) target_arch += {'ppc': ppc_ss} |