[PATCH/committed] sim: sh: fix plds Dz,MACL implementation

Message ID 20231224085614.24321-1-vapier@gentoo.org
State New
Headers
Series [PATCH/committed] sim: sh: fix plds Dz,MACL implementation |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 warning Patch is already merged
linaro-tcwg-bot/tcwg_gdb_build--master-arm warning Patch is already merged

Commit Message

Mike Frysinger Dec. 24, 2023, 8:56 a.m. UTC
  The plds Dz,MACL insn stores the Dz bit into MACL.  The current code
was storing the "res" variable into Dz and then into MACL, but not
setting "res" to anything.  Delete that logic and make it match the
existing plds Dz,MACH insn.
---
 sim/sh/gencode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/sim/sh/gencode.c b/sim/sh/gencode.c
index 9683dc46b86a..8ef3f3e33761 100644
--- a/sim/sh/gencode.c
+++ b/sim/sh/gencode.c
@@ -2439,7 +2439,7 @@  static op ppi_tab[] =
     "if (0xa05f >> z & 1)",
     "  RAISE_EXCEPTION (SIGILL);",
     "else",
-    "  MACL = DSP_R (z) = res;",
+    "  MACL = DSP_R (z);",
     "return;",
   },
   /* sh4a */