]> git.proxmox.com Git - mirror_qemu.git/commit
target/arm: Fix mte page crossing test
authorRichard Henderson <richard.henderson@linaro.org>
Sat, 12 Jun 2021 19:57:07 +0000 (12:57 -0700)
committerPeter Maydell <peter.maydell@linaro.org>
Wed, 16 Jun 2021 13:33:51 +0000 (14:33 +0100)
commitd3327a38cda104dd292105b6b9d140f2158209f9
tree5c45b533a29c26ab25ddc0f611e901e73d37ed21
parenta25c84c7e0ac00c026afa28fbbfa044e12fe0b1a
target/arm: Fix mte page crossing test

The test was off-by-one, because tag_last points to the
last byte of the tag to check, thus tag_last - prev_page
will equal TARGET_PAGE_SIZE when we use the first byte
of the next page.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/403
Reported-by: Peter Collingbourne <pcc@google.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20210612195707.840217-1-richard.henderson@linaro.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/mte_helper.c
tests/tcg/aarch64/Makefile.target
tests/tcg/aarch64/mte-7.c [new file with mode: 0644]