]> git.ipfire.org Git - thirdparty/qemu.git/commit
cputlb: Handle NB_MMU_MODES > TARGET_PAGE_BITS_MIN
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 11 Nov 2019 13:53:30 +0000 (14:53 +0100)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 22 Jan 2020 00:18:12 +0000 (14:18 -1000)
commit7b7d00e0a714e0bdcd4c8a76f0927e1c8f1b2121
tree3c86425e80f055c97e57a4f7b2f4827e017e2ddc
parent3e08b2b9cb64bff2b73fa9128c0e49bfcde0dd40
cputlb: Handle NB_MMU_MODES > TARGET_PAGE_BITS_MIN

In target/arm we will shortly have "too many" mmu_idx.
The current minimum barrier is caused by the way in which
tlb_flush_page_by_mmuidx is coded.

We can remove this limitation by allocating memory for
consumption by the worker.  Let us assume that this is
the unlikely case, as will be the case for the majority
of targets which have so far satisfied the BUILD_BUG_ON,
and only allocate memory when necessary.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
accel/tcg/cputlb.c