From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HQ2B2-00046H-R4 for qemu-devel@nongnu.org; Sat, 10 Mar 2007 09:04:04 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HQ2B1-00044T-Ee for qemu-devel@nongnu.org; Sat, 10 Mar 2007 09:04:04 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HQ2B1-00044A-6P for qemu-devel@nongnu.org; Sat, 10 Mar 2007 09:04:03 -0500 Received: from nf-out-0910.google.com ([64.233.182.188]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HQ2AZ-0000ml-B2 for qemu-devel@nongnu.org; Sat, 10 Mar 2007 09:03:35 -0500 Received: by nf-out-0910.google.com with SMTP id c31so2734641nfb for ; Sat, 10 Mar 2007 06:03:34 -0800 (PST) Message-ID: Date: Sat, 10 Mar 2007 22:03:24 +0800 From: "=?UTF-8?B?546L5oiQ5qWt?=" MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_11237_2494889.1173535404525" Subject: [Qemu-devel] scsi patch Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org ------=_Part_11237_2494889.1173535404525 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline --- ../../tmp/qemu-0.9.0/hw/lsi53c895a.c 2007-02-06 07:01: 54.000000000 +0800 +++ lsi53c895a.c 2007-03-08 20:50:03.094098835 +0800 @@ -251,7 +251,7 @@ uint32_t ia; uint32_t sbc; uint32_t csbc; - uint32_t scratch[13]; /* SCRATCHA-SCRATCHR */ + uint32_t scratch[18]; /* SCRATCHA-SCRATCHR */ /* Script ram is stored as 32-bit words in host byteorder. */ uint32_t script_ram[2048]; @@ -1038,7 +1038,7 @@ op0 |= op1; break; case 3: /* XOR */ - op0 |= op1; + op0 ^= op1; break; case 4: /* AND */ op0 &= op1; @@ -1765,7 +1765,7 @@ lsi_reg_writeb(s, addr, val & 0xff); lsi_reg_writeb(s, addr + 1, (val >> 8) & 0xff); lsi_reg_writeb(s, addr + 2, (val >> 16) & 0xff); - lsi_reg_writeb(s, addr + 2, (val >> 24) & 0xff); + lsi_reg_writeb(s, addr + 3, (val >> 24) & 0xff); } ------=_Part_11237_2494889.1173535404525 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline --- ../../tmp/qemu-0.9.0/hw/lsi53c895a.c        2007-02-06 07:01:54.000000000 +0800
+++ lsi53c895a.c        2007-03-08 20:50:03.094098835 +0800
@@ -251,7 +251,7 @@
     uint32_t ia;
     uint32_t sbc;
     uint32_t csbc;
-    uint32_t scratch[13]; /* SCRATCHA-SCRATCHR */
+    uint32_t scratch[18]; /* SCRATCHA-SCRATCHR */

     /* Script ram is stored as 32-bit words in host byteorder.  */
     uint32_t script_ram[2048];
@@ -1038,7 +1038,7 @@
                 op0 |= op1;
                 break;
             case 3: /* XOR */
-                op0 |= op1;
+                op0 ^= op1;
                 break;
             case 4: /* AND */
                 op0 &= op1;
@@ -1765,7 +1765,7 @@
     lsi_reg_writeb(s, addr, val & 0xff);
     lsi_reg_writeb(s, addr + 1, (val >> 8) & 0xff);
     lsi_reg_writeb(s, addr + 2, (val >> 16) & 0xff);
-    lsi_reg_writeb(s, addr + 2, (val >> 24) & 0xff);
+    lsi_reg_writeb(s, addr + 3, (val >> 24) & 0xff);
 }
------=_Part_11237_2494889.1173535404525--