This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] sim: bfin: drop RET[ENI] setup
- From: Mike Frysinger <vapier at gentoo dot org>
- To: gdb-patches at sourceware dot org
- Date: Mon, 17 Jun 2013 00:45:33 -0400
- Subject: [PATCH] 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).
Committed.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-06-17 Mike Frysinger <vapier@gentoo.org>
* se_allopcodes.h: Do not clear RETN/RETE/RETI.
---
sim/testsuite/sim/bfin/se_allopcodes.h | 3 ---
1 file changed, 3 deletions(-)
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;
--
1.8.2.1