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:
parent
cc08d4d1c3
commit
4306fc0f83
2 changed files with 12 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue