Skip to content
This repository has been archived by the owner on Feb 3, 2020. It is now read-only.

Commit

Permalink
exe.c: use phy_addr for mem_desc_find in ARM
Browse files Browse the repository at this point in the history
Signed-off-by: chaojixx <[email protected]>
  • Loading branch information
weizhou-chaojixx committed Jan 20, 2020
1 parent 58af1d4 commit d768c7c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,13 @@ tb_page_addr_t get_page_addr_code(CPUArchState *env1, target_ulong addr) {
cpu_ldub_code(env1, addr);
}
pd = env1->iotlb[mmu_idx][page_index] & ~TARGET_PAGE_MASK;
#if defined(TARGET_I386) || defined(TARGET_X86_64)
if (!mem_desc_find(pd)) {
#elif defined(TARGET_ARM)
if (!mem_desc_find(addr)) {
#else
#error Unsupported target architecture
#endif
#if defined(TARGET_ALPHA) || defined(TARGET_MIPS) || defined(TARGET_SPARC)
cpu_unassigned_access(env1, addr, 0, 1, 0, 4);
#else
Expand Down

0 comments on commit d768c7c

Please sign in to comment.