Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Merge tag 'pull-ppc-20230505' of https://gitlab.com/danielhb/qemu int…
…o staging ppc patch queue for 2023-05-05: This queue includes fixes for ppc and spapr emulation, a build fix for the pseries machine and a new reviewer for ppc/spapr. We're also carrying a Coverity fix for the sm501 display. # -----BEGIN PGP SIGNATURE----- # # iIwEABYKADQWIQQX6/+ZI9AYAK8oOBk82cqW3gMxZAUCZFUuGBYcZGFuaWVsaGI0 # MTNAZ21haWwuY29tAAoJEDzZypbeAzFk3X8A/33+EoBXO4ol5J+BxlQXLRdJkzxA # ok5zsm69K8VYl9eyAPkBlqqT0W7DyNP4eUU+cMi2vvQop5wt2iV1C2LbnaE2AA== # =iwNT # -----END PGP SIGNATURE----- # gpg: Signature made Fri 05 May 2023 05:26:00 PM BST # gpg: using EDDSA key 17EBFF9923D01800AF2838193CD9CA96DE033164 # gpg: issuer "danielhb413@gmail.com" # gpg: Good signature from "Daniel Henrique Barboza <danielhb413@gmail.com>" [unknown] # gpg: WARNING: This key is not certified with a trusted signature! # gpg: There is no indication that the signature belongs to the owner. # Primary key fingerprint: 17EB FF99 23D0 1800 AF28 3819 3CD9 CA96 DE03 3164 * tag 'pull-ppc-20230505' of https://gitlab.com/danielhb/qemu: hw/ppc/Kconfig: NVDIMM is a hard requirement for the pseries machine tests: tcg: ppc64: Add tests for Vector Extract Mask Instructions tcg: ppc64: Fix mask generation for vextractdm MAINTAINERS: Adding myself in the list for ppc/spapr ppc: spapr: cleanup cr get/set with helpers. hw/display/sm501: Remove unneeded increment from loop Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
- Loading branch information
Showing
14 changed files
with
90 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| #include <assert.h> | ||
| #include <stdint.h> | ||
| #include "qemu/compiler.h" | ||
|
|
||
| int main(void) | ||
| { | ||
| unsigned int result_wi; | ||
| vector unsigned char vbc_bi_src = { 0xFF, 0xFF, 0, 0xFF, 0xFF, 0xFF, | ||
| 0xFF, 0xFF, 0xFF, 0xFF, 0, 0, 0, | ||
| 0, 0xFF, 0xFF}; | ||
| vector unsigned short vbc_hi_src = { 0xFFFF, 0, 0, 0xFFFF, | ||
| 0, 0, 0xFFFF, 0xFFFF}; | ||
| vector unsigned int vbc_wi_src = {0, 0, 0xFFFFFFFF, 0xFFFFFFFF}; | ||
| vector unsigned long long vbc_di_src = {0xFFFFFFFFFFFFFFFF, 0}; | ||
| vector __uint128_t vbc_qi_src; | ||
|
|
||
| asm("vextractbm %0, %1" : "=r" (result_wi) : "v" (vbc_bi_src)); | ||
| #if HOST_BIG_ENDIAN | ||
| assert(result_wi == 0b1101111111000011); | ||
| #else | ||
| assert(result_wi == 0b1100001111111011); | ||
| #endif | ||
|
|
||
| asm("vextracthm %0, %1" : "=r" (result_wi) : "v" (vbc_hi_src)); | ||
| #if HOST_BIG_ENDIAN | ||
| assert(result_wi == 0b10010011); | ||
| #else | ||
| assert(result_wi == 0b11001001); | ||
| #endif | ||
|
|
||
| asm("vextractwm %0, %1" : "=r" (result_wi) : "v" (vbc_wi_src)); | ||
| #if HOST_BIG_ENDIAN | ||
| assert(result_wi == 0b0011); | ||
| #else | ||
| assert(result_wi == 0b1100); | ||
| #endif | ||
|
|
||
| asm("vextractdm %0, %1" : "=r" (result_wi) : "v" (vbc_di_src)); | ||
| #if HOST_BIG_ENDIAN | ||
| assert(result_wi == 0b10); | ||
| #else | ||
| assert(result_wi == 0b01); | ||
| #endif | ||
|
|
||
| vbc_qi_src[0] = 0x1; | ||
| vbc_qi_src[0] = vbc_qi_src[0] << 127; | ||
| asm("vextractqm %0, %1" : "=r" (result_wi) : "v" (vbc_qi_src)); | ||
| assert(result_wi == 0b1); | ||
|
|
||
| return 0; | ||
| } |