[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC PATCH 3/6] target/xtensa: Move xtensa-isa.c to common_ss[]
From: |
Philippe Mathieu-Daudé |
Subject: |
[RFC PATCH 3/6] target/xtensa: Move xtensa-isa.c to common_ss[] |
Date: |
Sat, 4 Jan 2025 00:17:35 +0100 |
The Xtensa disassembler (selected with CONFIG_XTENSA_DIS=y)
uses methods defined in xtensa-isa.c, so this file has to be
compiled when the disassembler is linked.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
target/xtensa/meson.build | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/target/xtensa/meson.build b/target/xtensa/meson.build
index f8d60101e3d..68ebfe2582d 100644
--- a/target/xtensa/meson.build
+++ b/target/xtensa/meson.build
@@ -12,9 +12,10 @@ xtensa_ss.add(files(
'op_helper.c',
'translate.c',
'win_helper.c',
- 'xtensa-isa.c',
))
+common_ss.add(when: 'CONFIG_XTENSA_DIS', if_true: files('xtensa-isa.c'))
+
xtensa_system_ss = ss.source_set()
xtensa_system_ss.add(files(
'dbg_helper.c',
--
2.47.1
- [RFC PATCH 0/6] disas: Allow linking multiple disassemblers in a heterogeneous binary, Philippe Mathieu-Daudé, 2025/01/03
- [RFC PATCH 1/6] target: Only link capstone to targets requiring it, Philippe Mathieu-Daudé, 2025/01/03
- [RFC PATCH 2/6] target/hexagon: Add Kconfig file, Philippe Mathieu-Daudé, 2025/01/03
- [RFC PATCH 3/6] target/xtensa: Move xtensa-isa.c to common_ss[],
Philippe Mathieu-Daudé <=
- [RFC PATCH 4/6] disas: Have each system target select its disassembler, Philippe Mathieu-Daudé, 2025/01/03
- [RFC PATCH 5/6] Kconfig: Expose host CONFIG_CAPSTONE definition, Philippe Mathieu-Daudé, 2025/01/03
- [RFC PATCH 6/6] disas: Select capstone targets by default, Philippe Mathieu-Daudé, 2025/01/03