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
This commit is contained in:
parent
6391e47e42
commit
0ec3ff526f
6
hw/r2d.c
6
hw/r2d.c
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user