[PATCH v5] tcg: Sanitize shift constants on ppc64le so that shift operations with large constants don't generate invalid instructions.

2020-06-07 Thread agrecascino123
From: "Catherine A. Frederick" Signed-off-by: Catherine A. Frederick --- Okay, I removed the bad "fix" on sar_i64, and the asserts in the various functions. Crossing my fingers here. tcg/ppc/tcg-target.inc.c | 34 +- 1 file changed, 29 insertions(+), 5 deletio

[PATCH v4] tcg: Sanitize shift constants on ppc64le so that shift operations with large constants don't generate invalid instructions.

2020-06-03 Thread agrecascino123
From: "Catherine A. Frederick" Signed-off-by: Catherine A. Frederick --- This should finally do it, sorry for the style issues on v3. tcg/ppc/tcg-target.inc.c | 41 ++-- 1 file changed, 35 insertions(+), 6 deletions(-) diff --git a/tcg/ppc/tcg-target.inc.c

[PATCH v3] tcg: Sanitize shift constants on ppc64le so that shift operations with large constants don't generate invalid instructions.

2020-06-03 Thread agrecascino123
From: "Catherine A. Frederick" Signed-off-by: Catherine A. Frederick --- tcg/ppc/tcg-target.inc.c | 28 ++-- 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/tcg/ppc/tcg-target.inc.c b/tcg/ppc/tcg-target.inc.c index 7da67086c6..3cab56fe91 100644 --- a/tcg/p

[PATCH] tcg: Sanitize shift constants on ppc64le so that shift operations with large constants don't generate invalid instructions.

2020-06-02 Thread agrecascino123
From: "Catherine A. Frederick" Signed-off-by: "Catherine A. Frederick" --- tcg/ppc/tcg-target.inc.c | 4 1 file changed, 4 insertions(+) diff --git a/tcg/ppc/tcg-target.inc.c b/tcg/ppc/tcg-target.inc.c index ee1f9227c1..a5450a5e67 100644 --- a/tcg/ppc/tcg-target.inc.c +++ b/tcg/ppc/tcg-ta

[PATCH] tcg: Sanitize shift constants on ppc64le so that shift operations with large constants don't generate invalid instructions.

2020-06-02 Thread agrecascino123
From: "Catherine A. Frederick" --- tcg/ppc/tcg-target.inc.c | 4 1 file changed, 4 insertions(+) diff --git a/tcg/ppc/tcg-target.inc.c b/tcg/ppc/tcg-target.inc.c index ee1f9227c1..a5450a5e67 100644 --- a/tcg/ppc/tcg-target.inc.c +++ b/tcg/ppc/tcg-target.inc.c @@ -790,21 +790,25 @@ static i