mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-01-22 09:04:58 +00:00
sim: bfin: allow pushing of SP
The hardware respects this insn, and some code (like the on-chip bootrom) uses it, so allow it. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
parent
28fe96b798
commit
efac2223c4
@ -1,3 +1,8 @@
|
||||
2011-05-14 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* bfin-sim.c (decode_PushPopReg_0): Delete (grp == 1 && reg == 6)
|
||||
check for SP reg.
|
||||
|
||||
2011-05-14 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* dv-bfin_uart.c (bfin_uart_write_byte): Add a mcr arg. Declare a
|
||||
|
@ -2035,8 +2035,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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user