Searched hist:b493ccf1fc82674ef73564b3c61e309105c9336b (Results 1 – 1 of 1) sorted by relevance
/openbmc/qemu/accel/tcg/ |
H A D | cputlb.c | diff b493ccf1fc82674ef73564b3c61e309105c9336b Fri Jul 13 09:16:35 CDT 2018 Peter Maydell <peter.maydell@linaro.org> accel/tcg: Use correct test when looking in victim TLB for code
In get_page_addr_code(), we were incorrectly looking in the victim TLB for an entry which matched the target address for reads, not for code accesses. This meant that we could hit on a victim TLB entry that indicated that the address was readable but not executable, and incorrectly bypass the call to tlb_fill() which should generate the guest MMU exception. Fix this bug.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20180713141636.18665-2-peter.maydell@linaro.org
|