]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
sim: sh: fix plds Dz,MACL implementation
authorMike Frysinger <vapier@gentoo.org>
Sun, 24 Dec 2023 08:53:03 +0000 (03:53 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sun, 24 Dec 2023 08:56:00 +0000 (03:56 -0500)
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

index 9683dc46b86a65efd5c169855dceb58edd60752a..8ef3f3e33761b915295e3625d03f2583b61351cf 100644 (file)
@@ -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 */