mirror of
https://github.com/qemu/qemu.git
synced 2026-04-05 21:50:33 +00:00
qemu/target_info: Add target_s390x() helper
Add a helper to distinct whether the binary is targetting S390x or not. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-Id: <20260213175032.32121-3-philmd@linaro.org>
This commit is contained in:
@@ -92,4 +92,11 @@ bool target_ppc(void);
|
|||||||
*/
|
*/
|
||||||
bool target_ppc64(void);
|
bool target_ppc64(void);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* target_s390x:
|
||||||
|
*
|
||||||
|
* Returns whether the target architecture is S390x.
|
||||||
|
*/
|
||||||
|
bool target_s390x(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -88,3 +88,8 @@ bool target_ppc64(void)
|
|||||||
{
|
{
|
||||||
return target_arch() == SYS_EMU_TARGET_PPC64;
|
return target_arch() == SYS_EMU_TARGET_PPC64;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool target_s390x(void)
|
||||||
|
{
|
||||||
|
return target_arch() == SYS_EMU_TARGET_S390X;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user