target/arm: Support more GM blocksizes
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 31 Aug 2023 08:45:14 +0000 (09:45 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 31 Aug 2023 08:45:14 +0000 (09:45 +0100)
commit7134cb07b749b669c25526c044b19204686f4663
treecdc677c7f0470d534da5bec7c772e4539e74e7eb
parent851ec6eba56d0153574c042bff05a3d0f235a00e
target/arm: Support more GM blocksizes

Support all of the easy GM block sizes.
Use direct memory operations, since the pointers are aligned.

While BS=2 (16 bytes, 1 tag) is a legal setting, that requires
an atomic store of one nibble.  This is not difficult, but there
is also no point in supporting it until required.

Note that cortex-a710 sets GM blocksize to match its cacheline
size of 64 bytes.  I expect many implementations will also
match the cacheline, which makes 16 bytes very unlikely.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 20230811214031.171020-4-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/cpu.c
target/arm/tcg/mte_helper.c