diff options
-rw-r--r-- | hw/char/goldfish_tty.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/char/goldfish_tty.c b/hw/char/goldfish_tty.c index a7aee8c1d2..5525e3f3d6 100644 --- a/hw/char/goldfish_tty.c +++ b/hw/char/goldfish_tty.c @@ -172,7 +172,11 @@ static void goldfish_tty_write(void *opaque, hwaddr offset, uint64_t value, unsi break; case TTY_DATA_PTR: +#if defined(TARGET_MIPS64) + s->ptr = (int32_t)deposit64(s->ptr, 0, 32, value); +#else s->ptr = deposit64(s->ptr, 0, 32, value); +#endif break; case TTY_DATA_PTR_HIGH: |