Don't call addreadlookup() from get_phys() unless the address being translated is in RAM. Fixes Windows 95 install on Packard Bell PB410.
This commit is contained in:
parent
8cb5c5eff2
commit
16bc3bb6ec
2 changed files with 11 additions and 2 deletions
|
|
@ -54,6 +54,13 @@ uint32_t mem_logical_addr;
|
|||
int mmuflush=0;
|
||||
int mmu_perm=4;
|
||||
|
||||
int mem_addr_is_ram(uint32_t addr)
|
||||
{
|
||||
mem_mapping_t *mapping = read_mapping[addr >> 14];
|
||||
|
||||
return (mapping == &ram_low_mapping) || (mapping == &ram_high_mapping) || (mapping == &ram_mid_mapping) || (mapping == &ram_remapped_mapping);
|
||||
}
|
||||
|
||||
void resetreadlookup()
|
||||
{
|
||||
int c;
|
||||
|
|
|
|||
Loading…
Reference in a new issue