]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/xtensa: fix access ring in l32ex
authorMax Filippov <jcmvbkbc@gmail.com>
Wed, 19 May 2021 10:40:00 +0000 (03:40 -0700)
committerMichael Roth <michael.roth@amd.com>
Thu, 14 Oct 2021 20:12:35 +0000 (15:12 -0500)
commitab331881254228561c1045d4fa96cc5f66672a41
tree903b7d8d27ecac5e22b4c450650ed486b7307e25
parentb20eff3ba44576dad70b76969870837de7105ba3
target/xtensa: fix access ring in l32ex

l32ex does memory access as all regular load/store operations at CRING
level. Fix apparent pasto from l32e that caused it to use RING instead.

This is a correctness issue, not a security issue, because in the worst
case the privilege level of memory access may be lowered, resulting in
an exception when the correct implementation would've succeeded.
In no case it would allow memory access that would've raised an
exception in the correct implementation.

Cc: qemu-stable@nongnu.org
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
(cherry picked from commit 735aa900e4bf57b777ac620bed7c88234ec4b601)
Signed-off-by: Michael Roth <michael.roth@amd.com>
target/xtensa/translate.c