aboutsummaryrefslogtreecommitdiff
path: root/target/arm/internals.h
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2021-02-12 10:48:53 -0800
committerPeter Maydell <peter.maydell@linaro.org>2021-02-16 13:07:56 +0000
commit16c849784873d10d0da257d698e391fddea1f0e4 (patch)
tree4660900bee67a03eec15528e28fc099e847a0e53 /target/arm/internals.h
parent2169b5c6f7a791ef9c43c72412efaafae3245114 (diff)
downloadqemu-16c849784873d10d0da257d698e391fddea1f0e4.zip
qemu-16c849784873d10d0da257d698e391fddea1f0e4.tar.gz
qemu-16c849784873d10d0da257d698e391fddea1f0e4.tar.bz2
target/arm: Use the proper TBI settings for linux-user
We were fudging TBI1 enabled to speed up the generated code. Now that we've improved the code generation, remove this. Also, tidy the comment to reflect the current code. The pauth test was testing a kernel address (-1) and making incorrect assumptions about TBI1; stick to userland addresses. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20210212184902.1251044-23-richard.henderson@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target/arm/internals.h')
-rw-r--r--target/arm/internals.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/arm/internals.h b/target/arm/internals.h
index b251fe4..112bbb1 100644
--- a/target/arm/internals.h
+++ b/target/arm/internals.h
@@ -1425,9 +1425,9 @@ static inline bool tcma_check(uint32_t desc, int bit55, int ptr_tag)
*/
static inline uint64_t useronly_clean_ptr(uint64_t ptr)
{
- /* TBI is known to be enabled. */
#ifdef CONFIG_USER_ONLY
- ptr = sextract64(ptr, 0, 56);
+ /* TBI0 is known to be enabled, while TBI1 is disabled. */
+ ptr &= sextract64(ptr, 0, 56);
#endif
return ptr;
}