]> www.infradead.org Git - users/dwmw2/qemu.git/commit
target/openrisc: Fix memory reading in debugger
authorStafford Horne <shorne@gmail.com>
Sun, 12 Jun 2022 09:59:34 +0000 (18:59 +0900)
committerStafford Horne <shorne@gmail.com>
Sun, 4 Sep 2022 06:02:56 +0000 (07:02 +0100)
commit0fd8a106efb6bc2e55b3e9629b106d13a7214570
tree8be95e66612b64b611cb20fc9353797aa0470a88
parent7025114b1cd7683cb7fbef0810577c67aa3cbbd8
target/openrisc: Fix memory reading in debugger

In commit f0655423ca ("target/openrisc: Reorg tlb lookup") data and
instruction TLB reads were combined.  This, broke debugger reads where
we first tried to map using the data tlb then fall back to the
instruction tlb.

This patch replicates this logic by first requesting a PAGE_READ
protection mapping then falling back to PAGE_EXEC.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Stafford Horne <shorne@gmail.com>
target/openrisc/mmu.c