]> git.proxmox.com Git - mirror_qemu.git/commit - include/qom/cpu.h
arm: Clarify the logic of set_pc()
authorJulia Suvorova <jusual@mail.ru>
Fri, 1 Feb 2019 14:55:46 +0000 (14:55 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 1 Feb 2019 14:55:46 +0000 (14:55 +0000)
commit42f6ed919325413392bea247a1e6f135deb469cd
treee0c08124c77ac0a831e03234dfde0bac665fe679
parentef682cdb4aded5c65a018e175482e875de66059d
arm: Clarify the logic of set_pc()

Until now, the set_pc logic was unclear, which raised questions about
whether it should be used directly, applying a value to PC or adding
additional checks, for example, set the Thumb bit in Arm cpu. Let's set
the set_pc logic for “Configure the PC, as was done in the ELF file”
and implement synchronize_with_tb hook for preserving PC to cpu_tb_exec.

Signed-off-by: Julia Suvorova <jusual@mail.ru>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 20190129121817.7109-1-jusual@mail.ru
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/boot.c
include/qom/cpu.h
target/arm/arm-powerctl.c
target/arm/cpu.c
target/arm/cpu64.c