summaryrefslogtreecommitdiff
path: root/hw/r2d.c
diff options
context:
space:
mode:
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2008-12-07 22:46:42 +0000
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2008-12-07 22:46:42 +0000
commitf264d71494f9377eed705cb76914db8b155160f6 (patch)
tree43af753b0577802934a2ea3a50a257fc02619b72 /hw/r2d.c
parentb3865e1e748ecf570edb2381a5e6d018ec137be8 (diff)
downloadqemu-f264d71494f9377eed705cb76914db8b155160f6.tar.gz
qemu-f264d71494f9377eed705cb76914db8b155160f6.tar.bz2
qemu-f264d71494f9377eed705cb76914db8b155160f6.zip
SH4: kill a few warnings
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5938 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/r2d.c')
-rw-r--r--hw/r2d.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/r2d.c b/hw/r2d.c
index 78fc197940..5d5eb1e498 100644
--- a/hw/r2d.c
+++ b/hw/r2d.c
@@ -240,8 +240,8 @@ static void r2d_init(ram_addr_t ram_size, int vga_ram_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, &bcr1, 4);
- cpu_physical_memory_write(SH7750_BCR2_A7, &bcr2, 2);
+ cpu_physical_memory_write(SH7750_BCR1_A7, (uint8_t *)&bcr1, 4);
+ cpu_physical_memory_write(SH7750_BCR2_A7, (uint8_t *)&bcr2, 2);
kernel_size = load_image(kernel_filename, phys_ram_base);