projects
/
platform
/
upstream
/
binutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bdba1b
)
sim: sh: fix plds Dz,MACL implementation
author
Mike Frysinger
<vapier@gentoo.org>
Sun, 24 Dec 2023 08:53:03 +0000
(
03:53
-0500)
committer
Mike 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
patch
|
blob
|
history
diff --git
a/sim/sh/gencode.c
b/sim/sh/gencode.c
index
9683dc4
..
8ef3f3e
100644
(file)
--- 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 */