aboutsummaryrefslogtreecommitdiff
path: root/hw/lsi53c895a.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-04-02 08:18:36 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-04-02 08:18:36 +0000
commit687fa640d49ce19b9b9a2258fde19e1500bfabb4 (patch)
treef835f5923fdf8a4592176d9630978c411e082834 /hw/lsi53c895a.c
parentd34cab9f49bc3ad83a2a968fc2d2719179db2c15 (diff)
downloadqemu-687fa640d49ce19b9b9a2258fde19e1500bfabb4.zip
qemu-687fa640d49ce19b9b9a2258fde19e1500bfabb4.tar.gz
qemu-687fa640d49ce19b9b9a2258fde19e1500bfabb4.tar.bz2
Random bug fixes from code inspection, by Wang Cheng Yeh.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2580 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/lsi53c895a.c')
-rw-r--r--hw/lsi53c895a.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/lsi53c895a.c b/hw/lsi53c895a.c
index 07e09f3..193ff12 100644
--- a/hw/lsi53c895a.c
+++ b/hw/lsi53c895a.c
@@ -1046,6 +1046,7 @@ again:
case 5: /* SHR */
op1 = op0 & 1;
op0 = (op0 >> 1) | (s->carry << 7);
+ s->carry = op1;
break;
case 6: /* ADD */
op0 += op1;