target/microblaze: Compile translate.c as common unit
In order do build translate.c as a common unit we need to replace: "accel/tcg/cpu-ldst.h" -> "accel/tcg/cpu-ldst-common.h" and: #include "tcg/tcg-op.h" -> #include "tcg/tcg-op-common.h" -> #include "tcg/tcg-op-mem.h" taking care to define TCG_ADDRESS_BITS, which is fixed for these 32-bit targets. Remove the now empty microblaze_ss[] source set. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com> Message-Id: <20260423100612.27278-10-philmd@linaro.org>
Philippe Mathieu-Daudé committed
Apr 23, 2026 at 11:12 UTC
46be91ee4f8c7ed7ac5c78e4e0bafa39132ac8b1
2 files changed
+5
-8
target/microblaze/meson.build
+1
-6
@@ -1,16 +1,12 @@
1
gen = decodetree.process('insns.decode')
2
3
microblaze_common_ss = ss.source_set()
4
+microblaze_common_ss.add(gen)
5
microblaze_common_ss.add(files(
6
'cpu.c',
7
'gdbstub.c',
8
'helper.c',
9
'op_helper.c',
9
-))
10
-
11
-microblaze_ss = ss.source_set()
12
-microblaze_ss.add(gen)
13
-microblaze_ss.add(files(
10
'translate.c',
11
))
12
@@ -26,7 +22,6 @@ microblaze_system_ss.add(files(
22
'machine.c',
23
))
24
29
-target_arch += {'microblaze': microblaze_ss}
25
target_user_arch += {'microblaze': microblaze_user_ss}
26
target_system_arch += {'microblaze': microblaze_system_ss}
27
target_common_system_arch += {'microblaze': microblaze_common_system_ss}
target/microblaze/translate.c
+4
-2
@@ -20,9 +20,11 @@
20
21
#include "qemu/osdep.h"
22
#include "cpu.h"
23
-#include "accel/tcg/cpu-ldst.h"
23
+#include "accel/tcg/cpu-ldst-common.h"
24
#include "accel/tcg/cpu-mmu-index.h"
25
-#include "tcg/tcg-op.h"
25
+#define TCG_ADDRESS_BITS 32
26
+#include "tcg/tcg-op-common.h"
27
+#include "tcg/tcg-op-mem.h"
28
#include "exec/helper-proto.h"
29
#include "exec/helper-gen.h"
30
#include "exec/translator.h"