From: Philippe Mathieu-Daudé Date: Tue, 12 Sep 2023 06:21:27 +0000 (+0300) Subject: target/ppc: Restrict KVM objects to system emulation X-Git-Tag: v8.2.0-rc0~19^2~41 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a523b6761c32d62304037366717e0c2ede8bbf3b;p=thirdparty%2Fqemu.git target/ppc: Restrict KVM objects to system emulation CONFIG_KVM is always FALSE on user emulation, so 'kvm.c' won't be added to ppc_ss[] source set; direcly use the system specific ppc_system_ss[] source set. Reviewed-by: Michael Tokarev Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20231003070427.69621-4-philmd@linaro.org> --- diff --git a/target/ppc/meson.build b/target/ppc/meson.build index eab4e3e1b35..0b89f9b89f1 100644 --- a/target/ppc/meson.build +++ b/target/ppc/meson.build @@ -30,7 +30,6 @@ gen = [ ] ppc_ss.add(when: 'CONFIG_TCG', if_true: gen) -ppc_ss.add(when: 'CONFIG_KVM', if_true: files('kvm.c')) ppc_ss.add(when: 'CONFIG_USER_ONLY', if_true: files('user_only_helper.c')) ppc_system_ss = ss.source_set() @@ -46,6 +45,7 @@ ppc_system_ss.add(when: 'CONFIG_TCG', if_true: files( ), if_false: files( 'tcg-stub.c', )) +ppc_system_ss.add(when: 'CONFIG_KVM', if_true: files('kvm.c')) ppc_system_ss.add(when: 'TARGET_PPC64', if_true: files( 'compat.c',