On 7/31/25 08:06, Pierrick Bouvier wrote:
We transform target/{arm,riscv}/common-semi-target.h headers to proper compilation units, and use them in arm-compat-semi.c.This way, we can include only the declaration header (which is target agnostic), and selectively link the appropriate implementation based on current target. Signed-off-by: Pierrick Bouvier<[email protected]> --- include/semihosting/common-semi.h | 5 +++++ semihosting/arm-compat-semi.c | 3 +-- ...mmon-semi-target.h => common-semi-target.c} | 18 ++++++++---------- ...mmon-semi-target.h => common-semi-target.c} | 17 ++++++++--------- target/arm/meson.build | 4 ++++ target/riscv/meson.build | 4 ++++ 6 files changed, 30 insertions(+), 21 deletions(-) rename target/arm/{common-semi-target.h => common-semi-target.c} (66%) rename target/riscv/{common-semi-target.h => common-semi-target.c} (60%)
Reviewed-by: Richard Henderson <[email protected]> r~
