Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LQn5K-0003fK-Mj for qemu-devel@nongnu.org; Sat, 24 Jan 2009 13:18:22 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LQn5K-0003eu-42 for qemu-devel@nongnu.org; Sat, 24 Jan 2009 13:18:22 -0500 Received: from [199.232.76.173] (port=33345 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LQn5J-0003eo-Pn for qemu-devel@nongnu.org; Sat, 24 Jan 2009 13:18:21 -0500 Received: from savannah.gnu.org ([199.232.41.3]:33524 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 1LQn5J-0001bz-IY for qemu-devel@nongnu.org; Sat, 24 Jan 2009 13:18:21 -0500 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1LQn5J-0008I8-0h for qemu-devel@nongnu.org; Sat, 24 Jan 2009 18:18:21 +0000 Received: from aurel32 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1LQn5I-0008I4-Mq for qemu-devel@nongnu.org; Sat, 24 Jan 2009 18:18:20 +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: Sat, 24 Jan 2009 18:18:20 +0000 Subject: [Qemu-devel] [6431] sh4: r2d. 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: 6431 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6431 Author: aurel32 Date: 2009-01-24 18:18:20 +0000 (Sat, 24 Jan 2009) Log Message: ----------- sh4: r2d. Endian conversion for peripheral register initialization. Add endian conversion to hw/r2d.c which lacks consideration of endian on setting BSC registers. Signed-off-by: Takashi YOSHII Signed-off-by: Aurelien Jarno Modified Paths: -------------- trunk/hw/r2d.c Modified: trunk/hw/r2d.c =================================================================== --- trunk/hw/r2d.c 2009-01-24 18:16:18 UTC (rev 6430) +++ trunk/hw/r2d.c 2009-01-24 18:18:20 UTC (rev 6431) @@ -238,10 +238,8 @@ { int kernel_size; /* initialization which should be done by firmware */ - uint32_t bcr1 = 1 << 3; /* cs3 SDRAM */ - uint16_t bcr2 = 3 << (3 * 2); /* cs3 32-bit */ - cpu_physical_memory_write(SH7750_BCR1_A7, (uint8_t *)&bcr1, 4); - cpu_physical_memory_write(SH7750_BCR2_A7, (uint8_t *)&bcr2, 2); + stl_phys(SH7750_BCR1, 1<<3); /* cs3 SDRAM */ + stw_phys(SH7750_BCR2, 3<<(3*2)); /* cs3 32bit */ kernel_size = load_image(kernel_filename, phys_ram_base);