target/ppc: Fix inequality check in do_lstxv_X
PATCH 1/1 target/ppc: Fix inequality check in do_lstxv_X
This fix was earlier introduced for do_lstxv_D form with 2cc0e449d173 however got missed for _X form. This patch fixes the same.
--- target/ppc/translate/vsx-impl.c.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
target/ppc/translate/vsx-impl.c.inc +1 -1
@@ -2244,7 +2244,7 @@ static bool do_lstxv_PLS_D(DisasContext *ctx, arg_PLS_D *a, static bool do_lstxv_X(DisasContext *ctx, arg_X *a, bool store, bool paired) { - if (paired || a->rt >= 32) { + if (paired || a->rt < 32) { REQUIRE_VSX(ctx); } else { REQUIRE_VECTOR(ctx);
Signature · 1 line
2.45.2
Quoted 16 lines · Harsh Prateek Bora
This fix was earlier introduced for
do_lstxv_Dform with2cc0e449d173however got missed for _X form. This patch fixes the same.Suggested-by Fabiano Rosas <[email protected]>Fixes 70426b5bb738 ("target/ppc: moved stxvx and lxvx from legacy to decodtree")Signed-off-by Harsh Prateek Bora <[email protected]>--- target/ppc/translate/vsx-impl.c.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)target/ppc/translate/vsx-impl.c.inc +0
-0
target/ppc/translate/vsx-impl.c.inc static bool do_lstxv_PLS_D(DisasContext *ctx, arg_PLS_D *a, · line 2250
Quoted 8 lines
target/ppc/translate/vsx-impl.c.inc +1
-1@@ -2244,7 +2244,7 @@ static bool do_lstxv_PLS_D(DisasContext *ctx, arg_PLS_D *a, static bool do_lstxv_X(DisasContext *ctx, arg_X *a, bool store, bool paired) { - if (paired || a->rt >= 32) { + if (paired || a->rt < 32) { REQUIRE_VSX(ctx); } else { REQUIRE_VECTOR(ctx);
Hi Harsh,
Seems I was quicker than you =)
https://lore.kernel.org/r/[email protected]
I'll give my RB and leave up to the maintainers which patch to take:
Hi Fabiano,
Quoted 29 lines · Fabiano Rosas
Quoted 16 lines · Harsh Prateek Bora
This fix was earlier introduced for
do_lstxv_Dform with2cc0e449d173however got missed for _X form. This patch fixes the same.Suggested-by Fabiano Rosas <[email protected]>Fixes 70426b5bb738 ("target/ppc: moved stxvx and lxvx from legacy to decodtree")Signed-off-by Harsh Prateek Bora <[email protected]>--- target/ppc/translate/vsx-impl.c.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)target/ppc/translate/vsx-impl.c.inc +0
-0target/ppc/translate/vsx-impl.c.inc static bool do_lstxv_PLS_D(DisasContext *ctx, arg_PLS_D *a, · line 2250
Quoted 8 lines
target/ppc/translate/vsx-impl.c.inc +1
-1@@ -2244,7 +2244,7 @@ static bool do_lstxv_PLS_D(DisasContext *ctx, arg_PLS_D *a, static bool do_lstxv_X(DisasContext *ctx, arg_X *a, bool store, bool paired) { - if (paired || a->rt >= 32) { + if (paired || a->rt < 32) { REQUIRE_VSX(ctx); } else { REQUIRE_VECTOR(ctx);Hi Harsh,
Quoted 7 lines
Seems I was quicker than you =)
https://lore.kernel.org/r/[email protected]
I'll give my RB and leave up to the maintainers which patch to take:
Reviewed-by Fabiano Rosas <[email protected]>
Thanks, I missed looking at your patch earlier.
I would vote for your patch though.
regards,
Harsh