Hack around mips32 host allowing kvm acceleration of mips64 guest, but tcg is disabled.
Signed-off-by: Richard Henderson <richard.hender...@linaro.org> --- target/mips/tcg/meson.build | 4 ++-- target/mips/tcg/system/meson.build | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/target/mips/tcg/meson.build b/target/mips/tcg/meson.build index fff9cd6c7f..e5574f177b 100644 --- a/target/mips/tcg/meson.build +++ b/target/mips/tcg/meson.build @@ -10,7 +10,7 @@ gen = [ ] mips_ss.add(gen) -mips_ss.add(files( +mips_ss.add(when: 'CONFIG_TCG', if_true: files( 'dsp_helper.c', 'exception.c', 'fpu_helper.c', @@ -26,7 +26,7 @@ mips_ss.add(files( 'vr54xx_helper.c', 'vr54xx_translate.c', )) -mips_ss.add(when: 'TARGET_MIPS64', if_true: files( +mips_ss.add(when: ['CONFIG_TCG', 'TARGET_MIPS64'], if_true: files( 'tx79_translate.c', 'octeon_translate.c', 'lcsr_translate.c', diff --git a/target/mips/tcg/system/meson.build b/target/mips/tcg/system/meson.build index 911341ac37..606ccacebc 100644 --- a/target/mips/tcg/system/meson.build +++ b/target/mips/tcg/system/meson.build @@ -1,12 +1,12 @@ -mips_system_ss.add(files( +mips_system_ss.add(when: 'CONFIG_TCG', if_true: files( 'cp0_helper.c', 'special_helper.c', 'tlb_helper.c', )) -mips_system_ss.add(when: ['CONFIG_SEMIHOSTING'], +mips_system_ss.add(when: ['CONFIG_TCG', 'CONFIG_SEMIHOSTING'], if_true: files('mips-semi.c'), if_false: files('semihosting-stub.c') ) -mips_system_ss.add(when: 'TARGET_MIPS64', if_true: files( +mips_system_ss.add(when: ['CONFIG_TCG', 'TARGET_MIPS64'], if_true: files( 'lcsr_helper.c', )) -- 2.43.0