aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2013-06-17 04:45:54 +0000
committerMike Frysinger <vapier@gentoo.org>2013-06-17 04:45:54 +0000
commit7a56db5f46dd6f2168092f7759c572017011dfc5 (patch)
tree6bba6859f935b8a8a5d5f5a0fd813c198ac57fc9
parent7935c6b0d2988e0bc4beb555dae107e13477f213 (diff)
downloadgdb-7a56db5f46dd6f2168092f7759c572017011dfc5.zip
gdb-7a56db5f46dd6f2168092f7759c572017011dfc5.tar.gz
gdb-7a56db5f46dd6f2168092f7759c572017011dfc5.tar.bz2
sim: bfin: drop RET[ENI] setup
Since these insns run in usermode, there should be no need to setup RET[ENI] to safe values. They won't be dereferenced, and any insn that returns via them are valid only in supervisor mode. Since this is in the main exception code path, saving any insn at all is good as it gets multiplied quickly (as in O(n^2) times). Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r--sim/testsuite/sim/bfin/ChangeLog4
-rw-r--r--sim/testsuite/sim/bfin/se_allopcodes.h3
2 files changed, 4 insertions, 3 deletions
diff --git a/sim/testsuite/sim/bfin/ChangeLog b/sim/testsuite/sim/bfin/ChangeLog
index 03a9844..753affc 100644
--- a/sim/testsuite/sim/bfin/ChangeLog
+++ b/sim/testsuite/sim/bfin/ChangeLog
@@ -1,3 +1,7 @@
+2013-06-17 Mike Frysinger <vapier@gentoo.org>
+
+ * se_allopcodes.h: Do not clear RETN/RETE/RETI.
+
2012-04-09 Robin Getz <robin.getz@analog.com>
* random_0017.S, random_0018.S, random_0025.S: New ASTAT shift tests.
diff --git a/sim/testsuite/sim/bfin/se_allopcodes.h b/sim/testsuite/sim/bfin/se_allopcodes.h
index 7ff8d2b..b49862a 100644
--- a/sim/testsuite/sim/bfin/se_allopcodes.h
+++ b/sim/testsuite/sim/bfin/se_allopcodes.h
@@ -158,9 +158,6 @@ _next_instruction:
/* set up pointers to valid data (32Meg), to reduce address violations */
reset_dags
RETS = r0;
- RETN = r0;
- RETE = r0;
- RETI = r0;
RTX;