]> www.infradead.org Git - users/dwmw2/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)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 29 Oct 2024 15:04:47 +0000 (15:04 +0000)
commitbab209af35037b33f7eb1b8a3737085935bec3a3
tree7503189fa10a02e08dab0b6579b60b9fba4f09b6
parenta892728021e581019cbc9d6d19c4f20cdcd1afa0
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>
target/arm/tcg/helper-a64.c