On 22/10/2026 08:00, Stian Halseth wrote:
Set HWCAP_SPARC_CRYPTO in AT_HWCAP like Linux does on real hardware
that supports it. qemu-sparc64 defaults to "TI UltraSparc II",
which has no crypto feature, so it must be enabled explicitly,
e.g. -cpu TI-UltraSparc-II,+crypto
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Signed-off-by: Stian Halseth <[email protected]>
---
linux-user/sparc/elfload.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/linux-user/sparc/elfload.c b/linux-user/sparc/elfload.c
index 181f1e00b5..0412741285 100644
--- a/linux-user/sparc/elfload.c
+++ b/linux-user/sparc/elfload.c
@@ -90,6 +90,7 @@ abi_ulong get_elf_hwcap(CPUState *cs)
r |= features & CPU_FEATURE_FMAF ? HWCAP_SPARC_FMAF : 0;
r |= features & CPU_FEATURE_VIS3 ? HWCAP_SPARC_VIS3 : 0;
r |= features & CPU_FEATURE_IMA ? HWCAP_SPARC_IMA : 0;
+ r |= features & CPU_FEATURE_CRYPTO ? HWCAP_SPARC_CRYPTO : 0;
#endif
return r;
Reviewed-by: Mark Cave-Ayland <[email protected]>
ATB,
Mark.