unicorn/qemu
Peter Maydell 3df93e463d target/arm: Don't use a TLB for ARMMMUIdx_Stage2
We define ARMMMUIdx_Stage2 as being an MMU index which uses a QEMU
TLB. However we never actually use the TLB -- all stage 2 lookups
are done by direct calls to get_phys_addr_lpae() followed by a
physical address load via address_space_ld*().

Remove Stage2 from the list of ARM MMU indexes which correspond to
real core MMU indexes, and instead put it in the set of "NOTLB" ARM
MMU indexes.

This allows us to drop NB_MMU_MODES to 11. It also means we can
safely add support for the ARMv8.3-TTS2UXN extension, which adds
permission bits to the stage 2 descriptors which define execute
permission separatel for EL0 and EL1; supporting that while keeping
Stage2 in a QEMU TLB would require us to use separate TLBs for
"Stage2 for an EL0 access" and "Stage2 for an EL1 access", which is a
lot of extra complication given we aren't even using the QEMU TLB.

In the process of updating the comment on our MMU index use,
fix a couple of other minor errors:
* NS EL2 EL2&0 was missing from the list in the comment
* some text hadn't been updated from when we bumped NB_MMU_MODES
above 8

Backports commit bf05340cb655637451162c02dadcd6581a05c02c from qemu
2020-05-07 08:40:06 -04:00
..
accel tcg: Remove softmmu code_gen_buffer fixed address 2020-04-30 07:03:06 -04:00
crypto
default-configs target/riscv: Initial introduction of the RISC-V target 2019-03-08 21:46:10 -05:00
docs docs/devel/memory.txt: Document _with_attrs accessors 2018-10-04 04:46:26 -04:00
fpu softfloat: Fix BAD_SHIFT from normalizeFloatx80Subnormal 2020-04-30 07:22:57 -04:00
hw Expose different 32-bit ARM CPU models to users via UC_MODE flags (#1165) 2020-01-14 09:37:21 -05:00
include osdep.h: Drop no-longer-needed Coverity workarounds 2020-04-30 07:27:24 -04:00
qapi qapi: Rewrite string-input-visitor's integer and list parsing 2018-12-18 04:57:25 -05:00
qobject qstring: Move qstring_from_substr()'s @end one to the right 2018-08-02 21:24:19 -04:00
qom cpu: Move icount_decr to CPUNegativeOffsetState 2019-06-13 15:34:28 -04:00
scripts decodetree: Use Python3 floor division operator 2020-04-30 07:16:30 -04:00
target target/arm: Don't use a TLB for ARMMMUIdx_Stage2 2020-05-07 08:40:06 -04:00
tcg tcg/mips: mips sync* encode error 2020-04-30 07:24:57 -04:00
util util/cutils: Turn FIXME comment into QEMU_BUILD_BUG_ON() 2020-01-14 08:04:30 -05:00
aarch64.h target/arm: Make cpu_register() available for other files 2020-04-30 21:38:42 -04:00
aarch64eb.h target/arm: Make cpu_register() available for other files 2020-04-30 21:38:42 -04:00
accel.c
arm.h target/arm: Make cpu_register() available for other files 2020-04-30 21:38:42 -04:00
armeb.h target/arm: Make cpu_register() available for other files 2020-04-30 21:38:42 -04:00
CODING_STYLE.rst docs: split the CODING_STYLE doc into distinct groups 2019-11-28 02:54:44 -05:00
configure configure: Support -static-pie if requested 2020-04-30 07:09:34 -04:00
COPYING
COPYING.LIB
cpus.c
exec.c Memory: Enable writeback for given memory region 2020-01-14 07:44:24 -05:00
gen_all_header.sh
glib_compat.c target/arm: Add VHE system register redirection and aliasing 2020-03-21 15:57:03 -04:00
header_gen.py target/arm: Make cpu_register() available for other files 2020-04-30 21:38:42 -04:00
ioport.c
LICENSE
m68k.h target/arm: Make cpu_register() available for other files 2020-04-30 21:38:42 -04:00
Makefile Makefile: Rename targets for make recursion 2019-08-08 17:26:49 -04:00
Makefile.objs
Makefile.target configure: Remove old -fno-gcse workaround for GCC 4.6.x and 4.7.[012] 2018-12-18 03:52:36 -05:00
memory.c Memory: Enable writeback for given memory region 2020-01-14 07:44:24 -05:00
memory_ldst.inc.c memory: Single byte swap along the I/O path 2020-01-07 19:12:04 -05:00
memory_mapping.c
mips.h target/arm: Make cpu_register() available for other files 2020-04-30 21:38:42 -04:00
mips64.h target/arm: Make cpu_register() available for other files 2020-04-30 21:38:42 -04:00
mips64el.h target/arm: Make cpu_register() available for other files 2020-04-30 21:38:42 -04:00
mipsel.h target/arm: Make cpu_register() available for other files 2020-04-30 21:38:42 -04:00
powerpc.h target/arm: Make cpu_register() available for other files 2020-04-30 21:38:42 -04:00
qemu-timer.c
riscv32.h target/arm: Make cpu_register() available for other files 2020-04-30 21:38:42 -04:00
riscv64.h target/arm: Make cpu_register() available for other files 2020-04-30 21:38:42 -04:00
rules.mak
sparc.h target/arm: Make cpu_register() available for other files 2020-04-30 21:38:42 -04:00
sparc64.h target/arm: Make cpu_register() available for other files 2020-04-30 21:38:42 -04:00
unicorn_common.h unicorn_common: Fix unicorn memory functions failing 2018-09-03 10:40:14 -04:00
VERSION Open 5.1 development tree 2020-04-30 07:30:38 -04:00
vl.c
vl.h
x86_64.h target/arm: Make cpu_register() available for other files 2020-04-30 21:38:42 -04:00