]> git.proxmox.com Git - mirror_qemu.git/commit - target/tricore/translate.c
target/tricore: Honour privilege changes on PSW write
authorBastian Koppelmann <kbastian@mail.uni-paderborn.de>
Wed, 21 Jun 2023 14:23:01 +0000 (16:23 +0200)
committerBastian Koppelmann <kbastian@mail.uni-paderborn.de>
Wed, 21 Jun 2023 16:09:54 +0000 (18:09 +0200)
commit19a18edd8860064d3dbe71bc5315347bcfeb4c24
tree0ae18762c542cb761b73e2125c8fb52dc296496e
parent57b9c589b621b40f3a81662ad1aa960ab6a60497
target/tricore: Honour privilege changes on PSW write

the CPU can change the privilege level by writing the corresponding bits
in PSW. If this happens all instructions after this 'mtcr' in the TB are
translated with the wrong privilege level. So we have to exit to the
cpu_loop() and start translating again with the new privilege level.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
Message-Id: <20230621142302.1648383-8-kbastian@mail.uni-paderborn.de>
target/tricore/translate.c