mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
removed access_type hack
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1095 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
32ff25bf68
commit
b769d8fef6
9 changed files with 89 additions and 86 deletions
|
@ -592,13 +592,7 @@ static inline target_ulong get_phys_addr_code(CPUState *env, target_ulong addr)
|
|||
#endif
|
||||
if (__builtin_expect(env->tlb_read[is_user][index].address !=
|
||||
(addr & TARGET_PAGE_MASK), 0)) {
|
||||
#if defined (TARGET_PPC)
|
||||
env->access_type = ACCESS_CODE;
|
||||
ldub_code((void *)addr);
|
||||
env->access_type = ACCESS_INT;
|
||||
#else
|
||||
ldub_code((void *)addr);
|
||||
#endif
|
||||
}
|
||||
return addr + env->tlb_read[is_user][index].addend - (unsigned long)phys_ram_base;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue