mbox series

[0/3] tcg/s390: Support host vector operations

Message ID 20200508155745.8223-1-richard.henderson@linaro.org
Headers show
Series tcg/s390: Support host vector operations | expand

Message

Richard Henderson May 8, 2020, 3:57 p.m. UTC
I've had this floating around on a branch for a while now
It is able to run arm sve tests under qemu, but I have not
been able to test it against real hardware. 


r~


Richard Henderson (3):
  tcg/s390: Change FACILITY representation
  tcg/s390: Merge TCG_AREG0 and TCG_REG_CALL_STACK into TCGReg
  tcg/s390: Implement vector operations

 tcg/s390/tcg-target.h     |  92 ++--
 tcg/s390/tcg-target.opc.h |   5 +
 tcg/s390/tcg-target.inc.c | 862 +++++++++++++++++++++++++++++++++++---
 3 files changed, 864 insertions(+), 95 deletions(-)
 create mode 100644 tcg/s390/tcg-target.opc.h

-- 
2.20.1

Comments

David Hildenbrand May 11, 2020, 8:50 a.m. UTC | #1
On 08.05.20 17:57, Richard Henderson wrote:
> I've had this floating around on a branch for a while now

> It is able to run arm sve tests under qemu, but I have not

> been able to test it against real hardware. 


You can run qemu-system-arm under qemu-system-s390 with vx=on ;) I'll
try to give this a churn one I figure out what to apply where. thanks

> 

> 

> r~

> 

> 

> Richard Henderson (3):

>   tcg/s390: Change FACILITY representation

>   tcg/s390: Merge TCG_AREG0 and TCG_REG_CALL_STACK into TCGReg

>   tcg/s390: Implement vector operations

> 

>  tcg/s390/tcg-target.h     |  92 ++--

>  tcg/s390/tcg-target.opc.h |   5 +

>  tcg/s390/tcg-target.inc.c | 862 +++++++++++++++++++++++++++++++++++---

>  3 files changed, 864 insertions(+), 95 deletions(-)

>  create mode 100644 tcg/s390/tcg-target.opc.h

> 



-- 
Thanks,

David / dhildenb
David Hildenbrand May 11, 2020, 9:51 a.m. UTC | #2
On 11.05.20 10:50, David Hildenbrand wrote:
> On 08.05.20 17:57, Richard Henderson wrote:

>> I've had this floating around on a branch for a while now

>> It is able to run arm sve tests under qemu, but I have not

>> been able to test it against real hardware. 

> 

> You can run qemu-system-arm under qemu-system-s390 with vx=on


(re-reading, I assume you did exactly that already)

I'm having issues building this due to lack of HWCAP_S390_VX.

[linux1@rhkvm01 qemu]$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.7 (Maipo)

-- 
Thanks,

David / dhildenb
Richard Henderson May 11, 2020, 3:10 p.m. UTC | #3
On 5/11/20 2:51 AM, David Hildenbrand wrote:
> On 11.05.20 10:50, David Hildenbrand wrote:

> I'm having issues building this due to lack of HWCAP_S390_VX.

> 

> [linux1@rhkvm01 qemu]$ cat /etc/redhat-release

> Red Hat Enterprise Linux Server release 7.7 (Maipo)

> 

Yes, I found that when I pushed the branch to shippable.

It seems there is a disconnect between glibc and the kernel, and some distros
have fixed it and some have not.  It's still broken in upstream glibc.

I have added an ifndef to the branch, but you can fix it locally by changing to
HWCAP_S390_VXRS.


r~
David Hildenbrand May 11, 2020, 3:34 p.m. UTC | #4
On 11.05.20 17:10, Richard Henderson wrote:
> On 5/11/20 2:51 AM, David Hildenbrand wrote:

>> On 11.05.20 10:50, David Hildenbrand wrote:

>> I'm having issues building this due to lack of HWCAP_S390_VX.

>>

>> [linux1@rhkvm01 qemu]$ cat /etc/redhat-release

>> Red Hat Enterprise Linux Server release 7.7 (Maipo)

>>

> Yes, I found that when I pushed the branch to shippable.

> 

> It seems there is a disconnect between glibc and the kernel, and some distros

> have fixed it and some have not.  It's still broken in upstream glibc.

> 

> I have added an ifndef to the branch, but you can fix it locally by changing to

> HWCAP_S390_VXRS.


Yes, compiles with that. Where are the arm sve tests located, so I can
run them? (are they in tests/tcg?)

thanks!

-- 
Thanks,

David / dhildenb
Richard Henderson May 11, 2020, 4:38 p.m. UTC | #5
On 5/11/20 8:34 AM, David Hildenbrand wrote:
> Yes, compiles with that. Where are the arm sve tests located, so I can

> run them? (are they in tests/tcg?)


Ah, they're risu files.  I'll find somewhere to share them.


r~