[PATCH 07/17] ppc64: Compare all bits of CCR

Richard Henderson posted 17 patches 6 months, 2 weeks ago
[PATCH 07/17] ppc64: Compare all bits of CCR
Posted by Richard Henderson 6 months, 2 weeks ago
There are 32 bits in this register, and they are all valid
comparision destinations.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
 risu_reginfo_ppc64.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/risu_reginfo_ppc64.c b/risu_reginfo_ppc64.c
index 67ea3ce..109b87b 100644
--- a/risu_reginfo_ppc64.c
+++ b/risu_reginfo_ppc64.c
@@ -78,7 +78,7 @@ int reginfo_is_eq(struct reginfo *m, struct reginfo *a)
         return 0;
     }
 
-    if ((m->gregs[CCR] & 0x10) != (a->gregs[CCR] & 0x10)) {
+    if (m->gregs[CCR] != a->gregs[CCR]) {
         return 0;
     }
 
-- 
2.34.1
Re: [PATCH 07/17] ppc64: Compare all bits of CCR
Posted by Philippe Mathieu-Daudé 6 months, 1 week ago
On 11/5/24 13:53, Richard Henderson wrote:
> There are 32 bits in this register, and they are all valid
> comparision destinations.
> 
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
>   risu_reginfo_ppc64.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>