[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 31/35] s390x/tcg: Allow linux-user to use vector inst
From: |
Cornelia Huck |
Subject: |
[Qemu-devel] [PULL 31/35] s390x/tcg: Allow linux-user to use vector instructions |
Date: |
Fri, 7 Jun 2019 11:52:33 +0200 |
From: David Hildenbrand <address@hidden>
Once we unlock S390_FEAT_VECTOR for TCG, we want linux-user to be
able to make use of it.
Reviewed-by: Richard Henderson <address@hidden>
Reviewed-by: Laurent Vivier <address@hidden>
Signed-off-by: David Hildenbrand <address@hidden>
---
target/s390x/cpu.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/target/s390x/cpu.c b/target/s390x/cpu.c
index b1df63d82c83..6af1a1530ff6 100644
--- a/target/s390x/cpu.c
+++ b/target/s390x/cpu.c
@@ -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 */
--
2.20.1
- [Qemu-devel] [PULL 20/35] s390x/tcg: Implement VECTOR FP CONVERT TO LOGICAL 64-BIT, (continued)
- [Qemu-devel] [PULL 20/35] s390x/tcg: Implement VECTOR FP CONVERT TO LOGICAL 64-BIT, Cornelia Huck, 2019/06/07
- [Qemu-devel] [PULL 25/35] s390x/tcg: Implement VECTOR FP MULTIPLY, Cornelia Huck, 2019/06/07
- [Qemu-devel] [PULL 24/35] s390x/tcg: Implement VECTOR LOAD ROUNDED, Cornelia Huck, 2019/06/07
- [Qemu-devel] [PULL 21/35] s390x/tcg: Implement VECTOR FP DIVIDE, Cornelia Huck, 2019/06/07
- [Qemu-devel] [PULL 23/35] s390x/tcg: Implement VECTOR LOAD LENGTHENED, Cornelia Huck, 2019/06/07
- [Qemu-devel] [PULL 22/35] s390x/tcg: Implement VECTOR LOAD FP INTEGER, Cornelia Huck, 2019/06/07
- [Qemu-devel] [PULL 26/35] s390x/tcg: Implement VECTOR FP MULTIPLY AND (ADD|SUBTRACT), Cornelia Huck, 2019/06/07
- [Qemu-devel] [PULL 28/35] s390x/tcg: Implement VECTOR FP SQUARE ROOT, Cornelia Huck, 2019/06/07
- [Qemu-devel] [PULL 27/35] s390x/tcg: Implement VECTOR FP PERFORM SIGN OPERATION, Cornelia Huck, 2019/06/07
- [Qemu-devel] [PULL 29/35] s390x/tcg: Implement VECTOR FP SUBTRACT, Cornelia Huck, 2019/06/07
- [Qemu-devel] [PULL 31/35] s390x/tcg: Allow linux-user to use vector instructions,
Cornelia Huck <=
- [Qemu-devel] [PULL 30/35] s390x/tcg: Implement VECTOR FP TEST DATA CLASS IMMEDIATE, Cornelia Huck, 2019/06/07
- [Qemu-devel] [PULL 32/35] s390x/tcg: We support the Vector Facility, Cornelia Huck, 2019/06/07
- [Qemu-devel] [PULL 33/35] s390x: Bump the "qemu" CPU model up to a stripped-down z13, Cornelia Huck, 2019/06/07
- [Qemu-devel] [PULL 35/35] linux-user: elf: ELF_HWCAP for s390x, Cornelia Huck, 2019/06/07
- [Qemu-devel] [PULL 34/35] s390x/tcg: Use tcg_gen_gvec_bitsel for VECTOR SELECT, Cornelia Huck, 2019/06/07
- Re: [Qemu-devel] [PULL 00/35] s390x updates, Peter Maydell, 2019/06/07