[PATCH v2 25/26] s390x/tcg: We support Vector enhancements facility

David Hildenbrand posted 26 patches 4 years, 8 months ago
Maintainers: Richard Henderson <richard.henderson@linaro.org>, Cornelia Huck <cohuck@redhat.com>, Thomas Huth <thuth@redhat.com>, Christian Borntraeger <borntraeger@de.ibm.com>, David Hildenbrand <david@redhat.com>, Halil Pasic <pasic@linux.ibm.com>
There is a newer version of this series
[PATCH v2 25/26] s390x/tcg: We support Vector enhancements facility
Posted by David Hildenbrand 4 years, 8 months ago
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: David Hildenbrand <david@redhat.com>
---
 target/s390x/gen-features.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/target/s390x/gen-features.c b/target/s390x/gen-features.c
index a6ec918e90..219b1f9420 100644
--- a/target/s390x/gen-features.c
+++ b/target/s390x/gen-features.c
@@ -720,6 +720,7 @@ static uint16_t qemu_MAX[] = {
     S390_FEAT_INSTRUCTION_EXEC_PROT,
     S390_FEAT_MISC_INSTRUCTION_EXT2,
     S390_FEAT_MSA_EXT_8,
+    S390_FEAT_VECTOR_ENH,
 };
 
 /****** END FEATURE DEFS ******/
-- 
2.31.1


Re: [PATCH v2 25/26] s390x/tcg: We support Vector enhancements facility
Posted by David Hildenbrand 4 years, 8 months ago
On 17.05.21 16:27, David Hildenbrand wrote:
> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
> Signed-off-by: David Hildenbrand <david@redhat.com>
> ---
>   target/s390x/gen-features.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/target/s390x/gen-features.c b/target/s390x/gen-features.c
> index a6ec918e90..219b1f9420 100644
> --- a/target/s390x/gen-features.c
> +++ b/target/s390x/gen-features.c
> @@ -720,6 +720,7 @@ static uint16_t qemu_MAX[] = {
>       S390_FEAT_INSTRUCTION_EXEC_PROT,
>       S390_FEAT_MISC_INSTRUCTION_EXT2,
>       S390_FEAT_MSA_EXT_8,
> +    S390_FEAT_VECTOR_ENH,
>   };
>   
>   /****** END FEATURE DEFS ******/
> 

I'll squash the following changes:

diff --git a/include/elf.h b/include/elf.h
index 033bcc9576..0049d5a318 100644
--- a/include/elf.h
+++ b/include/elf.h
@@ -605,6 +605,7 @@ typedef struct {
  #define HWCAP_S390_HIGH_GPRS    512
  #define HWCAP_S390_TE           1024
  #define HWCAP_S390_VXRS         2048
+#define HWCAP_S390_VXRS_EXT     8192

  /* M68K specific definitions. */
  /* We use the top 24 bits to encode information about the
diff --git a/linux-user/elfload.c b/linux-user/elfload.c
index 1ab97e38e0..23ccaf6df2 100644
--- a/linux-user/elfload.c
+++ b/linux-user/elfload.c
@@ -1374,6 +1374,7 @@ static uint32_t get_elf_hwcap(void)
          hwcap |= HWCAP_S390_ETF3EH;
      }
      GET_FEATURE(S390_FEAT_VECTOR, HWCAP_S390_VXRS);
+    GET_FEATURE(S390_FEAT_VECTOR_ENH, HWCAP_S390_VXRS_EXT);

      return hwcap;
  }


-- 
Thanks,

David / dhildenb