mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-23 17:05:36 +00:00
de513617c8
Background: s390x implements Low-Address Protection (LAP). If LAP is enabled, writing to effective addresses (before any translation) 0-511 and 4096-4607 triggers a protection exception. So we have subpage protection on the first two pages of every address space (where the lowcore - the CPU private data resides). By immediately invalidating the write entry but allowing the caller to continue, we force every write access onto these first two pages into the slow path. we will get a tlb fault with the specific accessed addresses and can then evaluate if protection applies or not. We have to make sure to ignore the invalid bit if tlb_fill() succeeds. Backports commit f52bfb12143e29d7c8bd827bdb751aee47a9694e from qemu |
||
---|---|---|
.. | ||
address-spaces.h | ||
cpu-all.h | ||
cpu-common.h | ||
cpu-defs.h | ||
cpu_ldst.h | ||
cpu_ldst_template.h | ||
cpu_ldst_useronly_template.h | ||
cputlb.h | ||
exec-all.h | ||
gen-icount.h | ||
helper-gen.h | ||
helper-head.h | ||
helper-proto.h | ||
helper-tcg.h | ||
hwaddr.h | ||
ioport.h | ||
memattrs.h | ||
memop.h | ||
memory-internal.h | ||
memory.h | ||
ram_addr.h | ||
ramlist.h | ||
semihost.h | ||
tb-context.h | ||
tb-hash.h | ||
tb-lookup.h | ||
translator.h |