This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] sim: bfin: allow pushing of SP
- From: Mike Frysinger <vapier at gentoo dot org>
- To: gdb-patches at sourceware dot org
- Cc: toolchain-devel at blackfin dot uclinux dot org
- Date: Sat, 14 May 2011 12:04:18 -0400
- Subject: [PATCH] sim: bfin: allow pushing of SP
The hardware respects this insn, and some code (like the on-chip bootrom)
uses it, so allow it.
Committed.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-05-14 Mike Frysinger <vapier@gentoo.org>
* bfin-sim.c (decode_PushPopReg_0): Delete (grp == 1 && reg == 6)
check for SP reg.
---
sim/bfin/bfin-sim.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/sim/bfin/bfin-sim.c b/sim/bfin/bfin-sim.c
index 925c058..4e45107 100644
--- a/sim/bfin/bfin-sim.c
+++ b/sim/bfin/bfin-sim.c
@@ -2073,8 +2073,7 @@ decode_PushPopReg_0 (SIM_CPU *cpu, bu16 iw0)
else
{
TRACE_INSN (cpu, "[--SP] = %s;", reg_name);
- /* Can't push SP. */
- if (INSN_LEN == 8 || (grp == 1 && reg == 6))
+ if (INSN_LEN == 8)
illegal_instruction_combination (cpu);
sp -= 4;
--
1.7.5.rc3