mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-23 05:45:36 +00:00
cputlb: Remove double-alignment in store_helper
We have already aligned page2 to the start of the next page. There is no reason to do that a second time. Backports commit 5787585d0406cfd54dda0c71ea1a603347ce6e71 from qemu
This commit is contained in:
parent
6990b212e3
commit
bb313206e5
|
@ -1371,8 +1371,7 @@ store_helper(CPUArchState *env, target_ulong addr, uint64_t val,
|
|||
entry2 = tlb_entry(env, mmu_idx, page2);
|
||||
tlb_addr2 = tlb_addr_write(entry2);
|
||||
if (!tlb_hit_page(tlb_addr2, page2)
|
||||
&& !victim_tlb_hit(env, mmu_idx, index2, tlb_off,
|
||||
page2 & TARGET_PAGE_MASK)) {
|
||||
&& !victim_tlb_hit(env, mmu_idx, index2, tlb_off, page2)) {
|
||||
tlb_fill(env_cpu(env), page2, size2, MMU_DATA_STORE,
|
||||
mmu_idx, retaddr);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue