From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DzCWt-000148-9E for qemu-devel@nongnu.org; Sun, 31 Jul 2005 08:02:55 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DzCWa-0000wn-AP for qemu-devel@nongnu.org; Sun, 31 Jul 2005 08:02:36 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DzCWY-0000eY-HN for qemu-devel@nongnu.org; Sun, 31 Jul 2005 08:02:34 -0400 Received: from [195.3.96.102] (helo=email.aon.at) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DzCPb-0008SW-0d for qemu-devel@nongnu.org; Sun, 31 Jul 2005 07:55:23 -0400 Received: from m956p021.adsl.highway.telekom.at (HELO s37.loc) ([62.47.151.117]) (envelope-sender ) by smarthub75.highway.telekom.at (qmail-ldap-1.03) with SMTP for ; 31 Jul 2005 11:43:04 -0000 Received: from cow by s37.loc with local (Exim 4.52) id 1DzCED-0004mL-FA for qemu-devel@nongnu.org; Sun, 31 Jul 2005 13:43:37 +0200 Date: Sun, 31 Jul 2005 13:43:37 +0200 From: Bernhard Fischer Message-ID: <20050731114337.GH15261@aon.at> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="XMCwj5IQnwKtuyBG" Content-Disposition: inline Subject: [Qemu-devel] [PATCH] exec.c commentary typos 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 --XMCwj5IQnwKtuyBG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, - fix some commentary typos in exec.c. Thank you, Bernhard --XMCwj5IQnwKtuyBG Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="qemu.exec.c-commentary-typo.diff" diff -X excl -rduNp qemu.oorig/exec.c qemu/exec.c --- qemu.oorig/exec.c 2005-07-28 17:54:37.000000000 +0200 +++ qemu/exec.c 2005-07-31 13:30:30.000000000 +0200 @@ -2168,7 +2168,7 @@ void cpu_physical_memory_rw(target_phys_ target_phys_addr_t page; unsigned long pd; PhysPageDesc *p; - + while (len > 0) { page = addr & TARGET_PAGE_MASK; l = (page + TARGET_PAGE_SIZE) - addr; @@ -2180,22 +2180,22 @@ void cpu_physical_memory_rw(target_phys_ } else { pd = p->phys_offset; } - + if (is_write) { if ((pd & ~TARGET_PAGE_MASK) != 0) { io_index = (pd >> IO_MEM_SHIFT) & (IO_MEM_NB_ENTRIES - 1); if (l >= 4 && ((addr & 3) == 0)) { - /* 32 bit read access */ + /* 32 bit write access */ val = ldl_p(buf); io_mem_write[io_index][2](io_mem_opaque[io_index], addr, val); l = 4; } else if (l >= 2 && ((addr & 1) == 0)) { - /* 16 bit read access */ + /* 16 bit write access */ val = lduw_p(buf); io_mem_write[io_index][1](io_mem_opaque[io_index], addr, val); l = 2; } else { - /* 8 bit access */ + /* 8 bit write access */ val = ldub_p(buf); io_mem_write[io_index][0](io_mem_opaque[io_index], addr, val); l = 1; --XMCwj5IQnwKtuyBG--