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

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=fed277fe1516127a0414eeda0b17a8bb6b318baf

commit fed277fe1516127a0414eeda0b17a8bb6b318baf
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Sun Dec 24 03:53:03 2023 -0500

    sim: sh: fix plds Dz,MACL implementation
    
    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.

Diff:
---
 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 9683dc46b86..8ef3f3e3376 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 */

^ 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 [binutils-gdb] sim: sh: fix plds Dz,MACL implementation Michael 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).