OSDN Git Service

target-ppc: Extend HWCAP2 bits for ISA 3.0
authorSandipan Das <sandipan@linux.ibm.com>
Thu, 6 Sep 2018 06:57:29 +0000 (12:27 +0530)
committerDavid Gibson <david@gibson.dropbear.id.au>
Fri, 7 Sep 2018 01:29:50 +0000 (11:29 +1000)
commitbe0c46d464c7c6b601adcd21fe9d2dd054a6a2cf
treec3d40faf2e3aa93b4ccf21206a8f200dc4962f82
parenta84f71793aab5d06b5798e78e1cee82cc3e4b3e2
target-ppc: Extend HWCAP2 bits for ISA 3.0

This adds the HWCAP2 bit to detect if a linux user process is
running on an ISA 3.0 compliant cpu like POWER9. This can be
verified using a simple test program that prints the value in
the auxiliary vector for AT_HWCAP2 as shown below.

Before:
  $ qemu-ppc64le -cpu power8 test
  0x8c000000

  $ qemu-ppc64le -cpu power9 test
  0x8c000000

After:
  $ qemu-ppc64le -cpu power8 test
  0x8c000000

  $ qemu-ppc64le -cpu power9 test
  0x8c800000

Signed-off-by: Sandipan Das <sandipan@linux.ibm.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
linux-user/elfload.c