* simops.c: Fix thinko in last change.
authorJeff Law <law@redhat.com>
Thu, 12 Jun 1997 04:14:42 +0000 (04:14 +0000)
committerJeff Law <law@redhat.com>
Thu, 12 Jun 1997 04:14:42 +0000 (04:14 +0000)
sim/mn10300/ChangeLog
sim/mn10300/simops.c

index 065fd93e824eab25021ad30c51f6f76fde59c474..8fb9861a810a90d958ec2e41bb37cda99c0c137f 100644 (file)
@@ -1,3 +1,7 @@
+Wed Jun 11 22:07:56 1997  Jeffrey A Law  (law@cygnus.com)
+
+       * simops.c: Fix thinko in last change.
+
 Tue Jun 10 12:31:32 1997  Jeffrey A Law  (law@cygnus.com)
 
        * simops.c: "call" stores the callee saved registers into the
index d92cc43509b03bdc93f5761348c7222e078e5e78..239936a9c81c22de2a05b47400150320948fb4c4 100644 (file)
@@ -2652,7 +2652,7 @@ void OP_DD000000 (insn, extension)
     }
 
   /* Update the stack pointer.  */
-  State.regs[REG_SP] = sp - extension;
+  State.regs[REG_SP] = sp - (extension & 0xff);
   State.regs[REG_MDR] = next_pc;
   State.regs[REG_PC] += (((insn & 0xffffff) << 8) | ((extension & 0xff0000) >> 16)) - 7;
 }