From: Joyce Janczyn Date: Wed, 25 Mar 1998 17:10:01 +0000 (+0000) Subject: * simops.c (OP_F0FD): Initialise variable 'sp' for rti instruction. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=52ef605e6df09807012c82ca104c0cd49c4e0542;p=binutils-gdb.git * simops.c (OP_F0FD): Initialise variable 'sp' for rti instruction. --- diff --git a/sim/mn10300/ChangeLog b/sim/mn10300/ChangeLog index 700ca36f0f1..7e703369470 100644 --- a/sim/mn10300/ChangeLog +++ b/sim/mn10300/ChangeLog @@ -1,3 +1,7 @@ +Wed Mar 25 12:08:00 1998 Joyce Janczyn + + * simops.c (OP_F0FD): Initialise variable 'sp'. + Thu Mar 26 00:21:32 1998 Andrew Cagney * dv-mn103int.c (decode_group): A group register every 4 bytes not diff --git a/sim/mn10300/simops.c b/sim/mn10300/simops.c index c6b1448bb03..aaf7f488adb 100644 --- a/sim/mn10300/simops.c +++ b/sim/mn10300/simops.c @@ -2846,6 +2846,7 @@ void OP_F0FD (insn, extension) { unsigned int sp, next_pc; + sp = State.regs[REG_SP]; PSW = State.mem[sp] | (State.mem[sp + 1] << 8); State.regs[REG_PC] = (State.mem[sp+4] | (State.mem[sp+5] << 8) | (State.mem[sp+6] << 16) | (State.mem[sp+7] << 24));