[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [qemu-s390x] [Qemu-devel] [PATCH v2 21/22] s390x/tcg: Allow linux-us
From: |
David Hildenbrand |
Subject: |
Re: [qemu-s390x] [Qemu-devel] [PATCH v2 21/22] s390x/tcg: Allow linux-user to use vector instructions |
Date: |
Tue, 4 Jun 2019 10:56:45 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 |
On 04.06.19 10:50, Laurent Vivier wrote:
> Le 03/06/2019 à 11:06, David Hildenbrand a écrit :
>> 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>
>> 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 b1df63d82c..6af1a1530f 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 */
>>
>
> Do we need to add some hwcaps in linux-user/elfload.c (HWCAP_S390_VXRS,
> HWCAP_S390_VXRS_EXT,...)?
Good point, I will look into this. Thanks!
>
> Thanks,
> Laurent
>
--
Thanks,
David / dhildenb
- [qemu-s390x] [PATCH v2 14/22] s390x/tcg: Implement VECTOR LOAD ROUNDED, (continued)
- [qemu-s390x] [PATCH v2 14/22] s390x/tcg: Implement VECTOR LOAD ROUNDED, David Hildenbrand, 2019/06/03
- [qemu-s390x] [PATCH v2 16/22] s390x/tcg: Implement VECTOR FP MULTIPLY AND (ADD|SUBTRACT), David Hildenbrand, 2019/06/03
- [qemu-s390x] [PATCH v2 17/22] s390x/tcg: Implement VECTOR FP PERFORM SIGN OPERATION, David Hildenbrand, 2019/06/03
- [qemu-s390x] [PATCH v2 18/22] s390x/tcg: Implement VECTOR FP SQUARE ROOT, David Hildenbrand, 2019/06/03
- [qemu-s390x] [PATCH v2 19/22] s390x/tcg: Implement VECTOR FP SUBTRACT, David Hildenbrand, 2019/06/03
- [qemu-s390x] [PATCH v2 21/22] s390x/tcg: Allow linux-user to use vector instructions, David Hildenbrand, 2019/06/03
- [qemu-s390x] [PATCH v2 22/22] s390x/tcg: We support the Vector Facility, David Hildenbrand, 2019/06/03
- [qemu-s390x] [PATCH v2 20/22] s390x/tcg: Implement VECTOR FP TEST DATA CLASS IMMEDIATE, David Hildenbrand, 2019/06/03
- Re: [qemu-s390x] [PATCH v2 00/22] s390x/tcg: Vector Instruction Support Part 4, David Hildenbrand, 2019/06/03
- [qemu-s390x] [PATCH v2 23/22] s390x: Bump the "qemu" CPU model up to a stripped-down z13, David Hildenbrand, 2019/06/03