diff options
author | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-01-24 18:18:20 +0000 |
---|---|---|
committer | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-01-24 18:18:20 +0000 |
commit | 0ec3ff526ff8410f1a8e0cc3bc0f11c7e4d0e90a (patch) | |
tree | 1ce89c54c474f17b9a28a29dc092e61c9fe969de | |
parent | 6391e47e42abf64d925c1120d03ba168cc8c2c50 (diff) | |
download | qemu-0ec3ff526ff8410f1a8e0cc3bc0f11c7e4d0e90a.tar.gz qemu-0ec3ff526ff8410f1a8e0cc3bc0f11c7e4d0e90a.tar.bz2 qemu-0ec3ff526ff8410f1a8e0cc3bc0f11c7e4d0e90a.zip |
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 <takasi-y@ops.dti.ne.jp>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6431 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r-- | hw/r2d.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -238,10 +238,8 @@ static void r2d_init(ram_addr_t ram_size, int vga_ram_size, { 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); |