public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH/committed] sim: sh: fix plds Dz,MACL implementation
@ 2023-12-24  8:56 Mike Frysinger
  0 siblings, 0 replies; only message in thread
From: Mike Frysinger @ 2023-12-24  8:56 UTC (permalink / raw)
  To: gdb-patches

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(-)

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 */
-- 
2.43.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-12-24  8:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-24  8:56 [PATCH/committed] sim: sh: fix plds Dz,MACL implementation Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).