]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/arm: Fix arithmetic underflow in SETM instruction
authorIdo Plat <ido.plat1@ibm.com>
Tue, 29 Oct 2024 12:54:45 +0000 (12:54 +0000)
committerMichael Tokarev <mjt@tls.msk.ru>
Thu, 31 Oct 2024 16:59:18 +0000 (19:59 +0300)
commit10eb3721fccd06e81bf36ebdf39dc1504eba9beb
tree77ab07ec58b46c77dc05fbc03423128590759051
parentfde3af1971f71a7b05dc6bcd6d1c9998b0b2c4c1
target/arm: Fix arithmetic underflow in SETM instruction

Pass the stage size to step function callback, otherwise do_setm
would hang when size is larger then page size because stage size
would underflow.  This fix changes do_setm to be more inline with
do_setp.

Cc: qemu-stable@nongnu.org
Fixes: 0e92818887dee ("target/arm: Implement the SET* instructions")
Signed-off-by: Ido Plat <ido.plat1@ibm.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20241025024909.799989-1-ido.plat1@ibm.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
(cherry picked from commit bab209af35037b33f7eb1b8a3737085935bec3a3)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
target/arm/tcg/helper-a64.c