aboutsummaryrefslogtreecommitdiff
path: root/sim/v850/simops.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1996-08-30 20:15:51 +0000
committerJeff Law <law@redhat.com>1996-08-30 20:15:51 +0000
commit3046d87986c295057d86aa1a05abdcbfec36962f (patch)
tree29a3d33ee3cff062e114b75d2ae4707456b8da95 /sim/v850/simops.c
parent1a393e50beafeeaaee621906c2ce88d48c4b2fa3 (diff)
downloadfsf-binutils-gdb-3046d87986c295057d86aa1a05abdcbfec36962f.zip
fsf-binutils-gdb-3046d87986c295057d86aa1a05abdcbfec36962f.tar.gz
fsf-binutils-gdb-3046d87986c295057d86aa1a05abdcbfec36962f.tar.bz2
* simops.c: Don't forget to initialize temp for
"ld.h" and "ld.w"
Diffstat (limited to 'sim/v850/simops.c')
-rw-r--r--sim/v850/simops.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sim/v850/simops.c b/sim/v850/simops.c
index c6969fe..77d6949 100644
--- a/sim/v850/simops.c
+++ b/sim/v850/simops.c
@@ -112,6 +112,7 @@ OP_720 ()
int result, temp;
op0 = State.regs[OP[0]];
+ temp = OP[2];
temp = (temp << 16) >> 16;
temp &= ~0x1;
op2 = temp;
@@ -128,6 +129,7 @@ OP_10720 ()
int result, temp;
op0 = State.regs[OP[0]];
+ temp = OP[2];
temp = (temp << 16) >> 16;
temp &= ~0x1;
op2 = temp;