]> git.proxmox.com Git - mirror_qemu.git/commit
target/arm: only update pc after semihosting completes
authorAlex Bennée <alex.bennee@linaro.org>
Tue, 17 Dec 2019 15:08:57 +0000 (15:08 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Thu, 9 Jan 2020 11:41:29 +0000 (11:41 +0000)
commit4ff5ef9e911c670ca10cdd36dd27c5395ec2c753
tree5abc54db219c91ed383e48bbfaad767b8628b1e9
parentb906acbb3aceed5b1eca30d9d365d5bd7431400b
target/arm: only update pc after semihosting completes

Before we introduce blocking semihosting calls we need to ensure we
can restart the system on semi hosting exception. To be able to do
this the EXCP_SEMIHOST operation should be idempotent until it finally
completes. Practically this means ensureing we only update the pc
after the semihosting call has completed.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Keith Packard <keithp@keithp.com>
Tested-by: Keith Packard <keithp@keithp.com>
linux-user/aarch64/cpu_loop.c
linux-user/arm/cpu_loop.c
target/arm/helper.c
target/arm/m_helper.c
target/arm/translate-a64.c
target/arm/translate.c