Fix typo
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 12 Jan 2009 17:31:29 +0000 (17:31 +0000)
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 12 Jan 2009 17:31:29 +0000 (17:31 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6268 c046a42c-6fe2-441c-8c8c-71466251a162

hw/slavio_serial.c

index 1028ed944c71508d7c1130daeeac8dbba2563e28..71d6368a536dd4e6d9359966ed587dd0cd57221d 100644 (file)
@@ -287,7 +287,7 @@ static void slavio_serial_reset_chn(ChannelState *s)
     int i;
 
     s->reg = 0;
-    for (i = 0; i < SERIAL_SIZE; i++) {
+    for (i = 0; i < SERIAL_REGS; i++) {
         s->rregs[i] = 0;
         s->wregs[i] = 0;
     }