aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2023-12-24 03:59:02 -0500
committerMike Frysinger <vapier@gentoo.org>2023-12-24 04:00:04 -0500
commit43fbcdcd03fec85a9ea147000c3feec9d4989d6c (patch)
tree329f76fec69949d2742b4bd8bdf5b2b077486949 /sim
parentfed277fe1516127a0414eeda0b17a8bb6b318baf (diff)
downloadgdb-43fbcdcd03fec85a9ea147000c3feec9d4989d6c.zip
gdb-43fbcdcd03fec85a9ea147000c3feec9d4989d6c.tar.gz
gdb-43fbcdcd03fec85a9ea147000c3feec9d4989d6c.tar.bz2
sim: sh: refine pwsb & pwad nops
Since these insns don't do anything and are effectively ignored, return early to avoid doing any common processing at the end as that requires initializing variables like "res" with something.
Diffstat (limited to 'sim')
-rw-r--r--sim/sh/gencode.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sim/sh/gencode.c b/sim/sh/gencode.c
index 8ef3f3e..c121d53 100644
--- a/sim/sh/gencode.c
+++ b/sim/sh/gencode.c
@@ -2012,8 +2012,10 @@ static op ppi_tab[] =
"ADD_SUB_GE;",
},
{ "","", "pwsb Sx,Sy,Dz", "10100100....zzzz",
+ "return;",
},
{ "","", "pwad Sx,Sy,Dz", "10110100....zzzz",
+ "return;",
},
{ "","", "(if cc) pabs Sx,Dz", "100010ccxx01zzzz",
"/* FIXME: duplicate code pabs. */",