sim: bfin: drop RET[ENI] setup
authorMike Frysinger <vapier@gentoo.org>
Mon, 17 Jun 2013 04:45:54 +0000 (04:45 +0000)
committerMike Frysinger <vapier@gentoo.org>
Mon, 17 Jun 2013 04:45:54 +0000 (04:45 +0000)
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>
sim/testsuite/sim/bfin/ChangeLog
sim/testsuite/sim/bfin/se_allopcodes.h

index 03a98446fa73ac8637cb552d4630dc6c83c30a36..753affcd0aa7f41d4dc42cb823381775033b14fd 100644 (file)
@@ -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.
index 7ff8d2b9fa0b55d1e6877236de8b06314128386e..b49862a7b9bee483bb51502798c21a99f3bd852c 100644 (file)
@@ -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;
 
This page took 0.026052 seconds and 4 git commands to generate.