]> git.proxmox.com Git - mirror_qemu.git/commitdiff
s390x/tcg: Allow linux-user to use vector instructions
authorDavid Hildenbrand <david@redhat.com>
Wed, 27 Feb 2019 08:07:34 +0000 (09:07 +0100)
committerDavid Hildenbrand <david@redhat.com>
Fri, 7 Jun 2019 12:53:26 +0000 (14:53 +0200)
Once we unlock S390_FEAT_VECTOR for TCG, we want linux-user to be
able to make use of it.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: David Hildenbrand <david@redhat.com>
target/s390x/cpu.c

index b1df63d82c834da1f1622cdd48cf8bd0995715da..6af1a1530ff6b1a459682cd09aac128669ce4eee 100644 (file)
@@ -145,6 +145,9 @@ static void s390_cpu_full_reset(CPUState *s)
 #if defined(CONFIG_USER_ONLY)
     /* user mode should always be allowed to use the full FPU */
     env->cregs[0] |= CR0_AFP;
+    if (s390_has_feat(S390_FEAT_VECTOR)) {
+        env->cregs[0] |= CR0_VECTOR;
+    }
 #endif
 
     /* architectured initial value for Breaking-Event-Address register */