target/arm/tcg/translate.c: make compilation unit common
We removed all target specifics, and can finally compile this file only once. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Message-id: 20260407222208.271838-22-pierrick.bouvier@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Pierrick Bouvier committed
Apr 23, 2026 at 10:24 UTC
c30efb3f1f02736cdf2c5e2a21525f997fd572e1
1 file changed
+5
-3
target/arm/tcg/meson.build
+5
-3
@@ -20,20 +20,18 @@ mve_d = decodetree.process('mve.decode', extra_args: '--decode=disas_mve')
20
21
m_nocp_d = decodetree.process('m-nocp.decode', extra_args: '--decode=disas_m_nocp')
22
23
-gen_a32 = [
23
+translate32_d = [
24
decodetree.process('a32.decode', extra_args: '--static-decode=disas_a32'),
25
decodetree.process('a32-uncond.decode', extra_args: '--static-decode=disas_a32_uncond'),
26
decodetree.process('t32.decode', extra_args: '--static-decode=disas_t32'),
27
decodetree.process('t16.decode', extra_args: ['-w', '16', '--static-decode=disas_t16']),
28
]
29
30
-arm_ss.add(gen_a32)
30
arm_ss.add(when: 'TARGET_AARCH64', if_true: gen_a64)
31
arm_ss.add(when: 'TARGET_AARCH64', if_false: files('stubs32.c'))
32
33
arm_ss.add(files(
34
'cpu32.c',
36
- 'translate.c',
35
'm_helper.c',
36
'mve_helper.c',
37
))
@@ -66,6 +64,7 @@ arm_common_system_ss.add(
64
m_nocp_d,
65
mve_d,
66
neon_d,
67
+ translate32_d,
68
vfp_d,
69
files(
70
'cpregs-at.c',
@@ -77,6 +76,7 @@ arm_common_system_ss.add(
76
'psci.c',
77
'tlb_helper.c',
78
'tlb-insns.c',
79
+ 'translate.c',
80
'translate-m-nocp.c',
81
'translate-mve.c',
82
'translate-neon.c',
@@ -88,6 +88,7 @@ arm_user_ss.add(
88
m_nocp_d,
89
mve_d,
90
neon_d,
91
+ translate32_d,
92
vfp_d,
93
files(
94
'debug.c',
@@ -96,6 +97,7 @@ arm_user_ss.add(
97
'neon_helper.c',
98
'op_helper.c',
99
'tlb_helper.c',
100
+ 'translate.c',
101
'translate-m-nocp.c',
102
'translate-mve.c',
103
'translate-neon.c',