From: Mike Frysinger Date: Sun, 24 Dec 2023 08:53:03 +0000 (-0500) Subject: sim: sh: fix plds Dz,MACL implementation X-Git-Tag: binutils-2_42~395 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fed277fe1516127a0414eeda0b17a8bb6b318baf;p=thirdparty%2Fbinutils-gdb.git 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 --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 */