Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KafGY-0008R2-6l for qemu-devel@nongnu.org; Tue, 02 Sep 2008 19:26:30 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KafGX-0008QT-GF for qemu-devel@nongnu.org; Tue, 02 Sep 2008 19:26:29 -0400 Received: from [199.232.76.173] (port=34107 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KafGX-0008QG-8X for qemu-devel@nongnu.org; Tue, 02 Sep 2008 19:26:29 -0400 Received: from savannah.gnu.org ([199.232.41.3]:49918 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KafGW-0002f4-PB for qemu-devel@nongnu.org; Tue, 02 Sep 2008 19:26:29 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1KafGS-0000NC-U0 for qemu-devel@nongnu.org; Tue, 02 Sep 2008 23:26:25 +0000 Received: from aurel32 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1KafGS-0000N0-K1 for qemu-devel@nongnu.org; Tue, 02 Sep 2008 23:26:24 +0000 MIME-Version: 1.0 Errors-To: aurel32 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Aurelien Jarno Message-Id: Date: Tue, 02 Sep 2008 23:26:24 +0000 Subject: [Qemu-devel] [5141] SH4: R2D-PLUS FPGA: simply unassigned memory triggering 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 Revision: 5141 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5141 Author: aurel32 Date: 2008-09-02 23:26:23 +0000 (Tue, 02 Sep 2008) Log Message: ----------- SH4: R2D-PLUS FPGA: simply unassigned memory triggering Use NULL to trigger unassigned memory error on 32-bit accesses instead of assert(0) as suggested by Blue Swirl. Signed-off-by: Aurelien Jarno Modified Paths: -------------- trunk/hw/r2d.c Modified: trunk/hw/r2d.c =================================================================== --- trunk/hw/r2d.c 2008-09-02 23:26:13 UTC (rev 5140) +++ trunk/hw/r2d.c 2008-09-02 23:26:23 UTC (rev 5141) @@ -27,7 +27,6 @@ #include "sh.h" #include "sysemu.h" #include "boards.h" -#include "assert.h" #define SDRAM_BASE 0x0c000000 /* Physical location of SDRAM: Area 3 */ #define SDRAM_SIZE 0x04000000 @@ -100,29 +99,16 @@ } } -static uint32_t invalid_read(void *opaque, target_phys_addr_t addr) -{ - assert(0); - - return 0; -} - -static void invalid_write(void *opaque, target_phys_addr_t addr, - uint32_t mem_value) -{ - assert(0); -} - static CPUReadMemoryFunc *r2d_fpga_readfn[] = { r2d_fpga_read, r2d_fpga_read, - invalid_read, + NULL, }; static CPUWriteMemoryFunc *r2d_fpga_writefn[] = { r2d_fpga_write, r2d_fpga_write, - invalid_write, + NULL, }; static void r2d_fpga_init(target_phys_addr_t base)