71b9a45330
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 >
2017-06-27 15:09:15 +02:00
f2553f0489
cputlb: move get_page_addr_code
...
This just moves the code before VICTIM_TLB_HIT macro definition
so we can use it.
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 >
2017-06-27 15:09:14 +02:00
3416343255
cputlb: cleanup get_page_addr_code to use VICTIM_TLB_HIT
...
This replaces env1 and page_index variables by env and index
so we can use VICTIM_TLB_HIT macro later.
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 >
2017-06-27 15:09:04 +02:00
d9bb58e510
tcg: move tcg related files into accel/tcg/ subdirectory
...
move cputlb.c, cpu-exec-common.c and cpu-exec.c related tcg exec
file into accel/tcg/ subdirectory.
Signed-off-by: Yang Zhong <yang.zhong@intel.com >
Message-Id: <1496383606-18060-3-git-send-email-yang.zhong@intel.com >
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2017-06-15 11:04:06 +02:00