From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JW8Ao-0007vG-D5 for qemu-devel@nongnu.org; Mon, 03 Mar 2008 05:45:34 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JW8Am-0007uX-9S for qemu-devel@nongnu.org; Mon, 03 Mar 2008 05:45:33 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JW8Ak-0007uF-Cq for qemu-devel@nongnu.org; Mon, 03 Mar 2008 05:45:30 -0500 Received: from smtp7-g19.free.fr ([212.27.42.64]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JW8Ak-00072m-5f for qemu-devel@nongnu.org; Mon, 03 Mar 2008 05:45:30 -0500 Received: from smtp7-g19.free.fr (localhost [127.0.0.1]) by smtp7-g19.free.fr (Postfix) with ESMTP id 6210532287C for ; Mon, 3 Mar 2008 11:45:29 +0100 (CET) Received: from [127.0.0.1] (rob92-4-82-225-201-66.fbx.proxad.net [82.225.201.66]) by smtp7-g19.free.fr (Postfix) with ESMTP id B63EC32285C for ; Mon, 3 Mar 2008 11:45:28 +0100 (CET) Message-ID: <47CBD6C8.9040907@reactos.org> Date: Mon, 03 Mar 2008 11:45:28 +0100 From: =?ISO-8859-1?Q?Herv=E9_Poussineau?= MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------030900020309010301040703" Subject: [Qemu-devel] [4/6] ds1225y nvram: Fix some bugs 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 This is a multi-part message in MIME format. --------------030900020309010301040703 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Attached files fixes some problems with nvram emulation: - whole nvram was erased in some conditions - fix out of range accesses - improve speed by keeping contents in memory Sorry to not provide a patch for ds1225y.c, but it contains mixed line-endings and my diff/patch tools doesn't like that. --------------030900020309010301040703 Content-Type: text/plain; name="4_ds1225y.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="4_ds1225y.patch" Index: hw/mips.h =================================================================== RCS file: /sources/qemu/qemu/hw/mips.h,v retrieving revision 1.1 diff -u -r1.1 mips.h --- hw/mips.h 17 Nov 2007 17:14:43 -0000 1.1 +++ hw/mips.h 3 Mar 2008 08:53:18 -0000 @@ -6,8 +6,8 @@ PCIBus *pci_gt64120_init(qemu_irq *pic); /* ds1225y.c */ -typedef struct ds1225y_t ds1225y_t; -ds1225y_t *ds1225y_init(target_phys_addr_t mem_base, const char *filename); +void *ds1225y_init(target_phys_addr_t mem_base, const char *filename); +void ds1225y_set_protection(void *opaque, int protection); /* g364fb.c */ int g364fb_mm_init(DisplayState *ds, uint8_t *vga_vram_base, --------------030900020309010301040703--