qemu/target_info: Add target_arm() helper

Add a helper to distinct whether the binary is targetting
ARM (32-bit only) or not.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Acked-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20251021210144.58108-1-philmd@linaro.org>
This commit is contained in:
Philippe Mathieu-Daudé
2025-10-30 14:48:26 +01:00
parent 9f5791334e
commit cc08d4d1c3
2 changed files with 12 additions and 0 deletions
+7
View File
@@ -50,4 +50,11 @@ const char *target_cpu_type(void);
*/
bool target_big_endian(void);
/**
* target_arm:
*
* Returns whether the target architecture is ARM (32-bit, not Aarch64).
*/
bool target_arm(void);
#endif