qemu/target_info: Add target_aarch64() helper

Add a helper to distinct whether the binary is targetting
Aarch64 or not.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Acked-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20251021210144.58108-2-philmd@linaro.org>
This commit is contained in:
Philippe Mathieu-Daudé 2025-04-05 00:41:48 +02:00
parent cc08d4d1c3
commit 4306fc0f83
2 changed files with 12 additions and 0 deletions

View file

@ -57,3 +57,8 @@ bool target_arm(void)
{
return target_arch() == SYS_EMU_TARGET_ARM;
}
bool target_aarch64(void)
{
return target_arch() == SYS_EMU_TARGET_AARCH64;
}