diff options
author | Jakub Jermář | 2019-05-17 14:35:33 +0200 |
---|---|---|
committer | Aleksandar Markovic | 2019-05-26 17:33:24 +0200 |
commit | 7353113fa482e697a77575086a41f429a01f8dc0 (patch) | |
tree | 48c01b6c7d46e239ac8bf8b22a6a26c32d9c2da2 /linux-user | |
parent | target/mips: Refactor and fix INSERT.<B|H|W|D> instructions (diff) | |
download | qemu-7353113fa482e697a77575086a41f429a01f8dc0.tar.gz qemu-7353113fa482e697a77575086a41f429a01f8dc0.tar.xz qemu-7353113fa482e697a77575086a41f429a01f8dc0.zip |
mips: Decide to map PAGE_EXEC in map_address
This commit addresses QEMU Bug #1825311:
mips_cpu_handle_mmu_fault renders all accessed pages executable
It allows finer-grained control over whether the accessed page should
be executable by moving the decision to the underlying map_address
function, which has more information for this.
As a result, pages that have the XI bit set in the TLB and are accessed
for read/write, don't suddenly end up being executable.
Fixes: https://bugs.launchpad.net/qemu/+bug/1825311
Fixes: 2fb58b73746e ('target-mips: add RI and XI fields to TLB entry')
Signed-off-by: Jakub Jermář <jakub.jermar@kernkonzept.com>
Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20190517123533.868479-1-jakub.jermar@kernkonzept.com>
Diffstat (limited to 'linux-user')
0 files changed, 0 insertions, 0 deletions