Re: [PATCH v4 05/12] target/arm: Fix unaligned checks for mte_check1, mte_probe1

2021-04-08 Thread Alex Bennée
Richard Henderson writes: > We were incorrectly assuming that only the first byte of an MTE access > is checked against the tags. But per the ARM, unaligned accesses are > pre-decomposed into single-byte accesses. So by the time we reach the > actual MTE check in the ARM pseudocode, all acces

[PATCH v4 05/12] target/arm: Fix unaligned checks for mte_check1, mte_probe1

2021-04-06 Thread Richard Henderson
We were incorrectly assuming that only the first byte of an MTE access is checked against the tags. But per the ARM, unaligned accesses are pre-decomposed into single-byte accesses. So by the time we reach the actual MTE check in the ARM pseudocode, all accesses are aligned. We cannot tell a pri