diff options
Diffstat (limited to 'hw/semihosting/console.c')
-rw-r--r-- | hw/semihosting/console.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/semihosting/console.c b/hw/semihosting/console.c index 466ea6dade..4ab7533bb8 100644 --- a/hw/semihosting/console.c +++ b/hw/semihosting/console.c @@ -40,7 +40,7 @@ int qemu_semihosting_log_out(const char *s, int len) */ static GString *copy_user_string(CPUArchState *env, target_ulong addr, int len) { - CPUState *cpu = ENV_GET_CPU(env); + CPUState *cpu = env_cpu(env); GString *s = g_string_sized_new(len ? len : 128); uint8_t c; bool done; |