On 20/10/26 16:55, Stian Halseth wrote:
Set HWCAP_SPARC_CRYPTO in AT_HWCAP like Linux does on real hardware
that supports it.
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
qemu-sparc64 defaults to TI UltraSparc II which does not have the
CRYPTO feature, we need to enable it manually with:
-cpu TI-UltraSparc-II,+crypto
Worth mentioning in the patch description? Otherwise:
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>