cputlb: fix the way get_page_addr_code fills the tlb
commit71b9a45330fe220d11a7a187efc477745dffbd26
authorKONRAD Frederic <fred.konrad@greensocs.com>
Fri, 3 Feb 2017 15:32:12 +0000 (3 16:32 +0100)
committerEdgar E. Iglesias <edgar.iglesias@xilinx.com>
Tue, 27 Jun 2017 13:09:15 +0000 (27 15:09 +0200)
treef63add29216d923b1b0d59648e886bf3fb44e345
parentf2553f04890cfaef2fb045e7d19b9c4ecd414da2
cputlb: fix the way get_page_addr_code fills the tlb

get_page_addr_code(..) does a cpu_ldub_code to fill the tlb:
This can lead to some side effects if a device is mapped at this address.

So this patch replaces the cpu_memory_ld by a tlb_fill.

Reviewed-by: Richard Henderson <rth@twiddle.net>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
accel/tcg/cputlb.c