aboutsummaryrefslogtreecommitdiffstats
path: root/hw/goldfish_tty.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/goldfish_tty.c')
-rw-r--r--hw/goldfish_tty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/goldfish_tty.c b/hw/goldfish_tty.c
index dd50efc..904a07b 100644
--- a/hw/goldfish_tty.c
+++ b/hw/goldfish_tty.c
@@ -126,8 +126,8 @@ static void goldfish_tty_write(void *opaque, target_phys_addr_t offset, uint32_t
if (to_write > len)
to_write = len;
- cpu_memory_rw_debug(cpu_single_env, buf, temp, to_write, 0);
- qemu_chr_write(s->cs, temp, to_write);
+ cpu_memory_rw_debug(cpu_single_env, buf, (uint8_t*)temp, to_write, 0);
+ qemu_chr_write(s->cs, (const uint8_t*)temp, to_write);
buf += to_write;
len -= to_write;
}