mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-01-27 01:31:21 +00:00
ppcmmu: Fix write accesses to read-only memory.
This commit is contained in:
parent
4d7204debc
commit
c28e1fa0be
@ -616,7 +616,7 @@ static TLBEntry* dtlb2_refill(uint32_t guest_va, int is_write)
|
||||
(phys_addr - rgn_desc->start);
|
||||
if (rgn_desc->type == RT_ROM) {
|
||||
// redirect writes to the dummy page for ROM regions
|
||||
tlb_entry->host_va_offs_w = (int64_t)&dummy_page - guest_va;
|
||||
tlb_entry->host_va_offs_w = (int64_t)&dummy_page - tag;
|
||||
} else {
|
||||
tlb_entry->host_va_offs_w = tlb_entry->host_va_offs_r;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user