summaryrefslogtreecommitdiffstats
path: root/docs/colo-proxy.txt
diff options
context:
space:
mode:
authorPeter Maydell2020-03-03 18:49:49 +0100
committerPeter Maydell2020-03-12 17:01:37 +0100
commit19717e9b44f5a14bbf92fb3bb9b99006d2f63dcf (patch)
treece48c47a185af95809d741319dfeb6dfb4799e03 /docs/colo-proxy.txt
parenttarget/arm: Update hflags in trans_CPS_v7m() (diff)
downloadqemu-19717e9b44f5a14bbf92fb3bb9b99006d2f63dcf.tar.gz
qemu-19717e9b44f5a14bbf92fb3bb9b99006d2f63dcf.tar.xz
qemu-19717e9b44f5a14bbf92fb3bb9b99006d2f63dcf.zip
target/arm: Recalculate hflags correctly after writes to CONTROL
A write to the CONTROL register can change our current EL (by writing to the nPRIV bit). That means that we can't assume that s->current_el is still valid in trans_MSR_v7m() when we try to rebuild the hflags. Add a new helper rebuild_hflags_m32_newel() which, like the existing rebuild_hflags_a32_newel(), recalculates the current EL from scratch, and use it in trans_MSR_v7m(). This fixes an assertion about an hflags mismatch when the guest changes privilege by writing to CONTROL. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20200303174950.3298-4-peter.maydell@linaro.org
Diffstat (limited to 'docs/colo-proxy.txt')
0 files changed, 0 insertions, 0 deletions