We removed all target specifics, and can finally compile this file only
once.
Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
---
target/arm/tcg/meson.build | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/target/arm/tcg/meson.build b/target/arm/tcg/meson.build
index 0740de92c1a..506f031f1aa 100644
--- a/target/arm/tcg/meson.build
+++ b/target/arm/tcg/meson.build
@@ -20,20 +20,18 @@ mve_d = decodetree.process('mve.decode', extra_args: '--decode=disas_mve')
m_nocp_d = decodetree.process('m-nocp.decode', extra_args: '--decode=disas_m_nocp')
-gen_a32 = [
+translate32_d = [
decodetree.process('a32.decode', extra_args: '--static-decode=disas_a32'),
decodetree.process('a32-uncond.decode', extra_args: '--static-decode=disas_a32_uncond'),
decodetree.process('t32.decode', extra_args: '--static-decode=disas_t32'),
decodetree.process('t16.decode', extra_args: ['-w', '16', '--static-decode=disas_t16']),
]
-arm_ss.add(gen_a32)
arm_ss.add(when: 'TARGET_AARCH64', if_true: gen_a64)
arm_ss.add(when: 'TARGET_AARCH64', if_false: files('stubs32.c'))
arm_ss.add(files(
'cpu32.c',
- 'translate.c',
'm_helper.c',
'mve_helper.c',
))
@@ -66,6 +64,7 @@ arm_common_system_ss.add(
m_nocp_d,
mve_d,
neon_d,
+ translate32_d,
vfp_d,
files(
'cpregs-at.c',
@@ -77,6 +76,7 @@ arm_common_system_ss.add(
'psci.c',
'tlb_helper.c',
'tlb-insns.c',
+ 'translate.c',
'translate-m-nocp.c',
'translate-mve.c',
'translate-neon.c',
@@ -88,6 +88,7 @@ arm_user_ss.add(
m_nocp_d,
mve_d,
neon_d,
+ translate32_d,
vfp_d,
files(
'debug.c',
@@ -96,6 +97,7 @@ arm_user_ss.add(
'neon_helper.c',
'op_helper.c',
'tlb_helper.c',
+ 'translate.c',
'translate-m-nocp.c',
'translate-mve.c',
'translate-neon.c',
--
2.47.3