Skip to contentSkip to conversation

fix typo in openpic timer test

PATCH New Guillem Jover 1 participant 1 message Dec 23, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix typo in openpic timer test

Hi,

This patch comes from warning triaging. It seems a typo in the openpic timer test function.

Patch attached.

reagrds,
guillem

Package: qemu
Version: 0.6.0
Author: Guillem Jover <[email protected]>
Status: not-applied
Description:
Fix typo in openpic timer test.

hw/openpic.c +1 -1
diff -Naur qemu-0.6.0.dfsg.2.orig/hw/openpic.c qemu-0.6.0.dfsg.2/hw/openpic.c
@@ -629,7 +629,7 @@
         break;
     case 0x10: /* TIBC */
 	if ((opp->timers[idx].ticc & 0x80000000) != 0 &&
-	    (val & 0x800000000) == 0 &&
+	    (val & 0x80000000) == 0 &&
             (opp->timers[idx].tibc & 0x80000000) != 0)
 	    opp->timers[idx].ticc &= ~0x80000000;
 	opp->timers[idx].tibc = val;