summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author arbee <rb6502@users.noreply.github.com>2019-05-22 21:47:23 -0400
committer arbee <rb6502@users.noreply.github.com>2019-05-22 21:47:23 -0400
commitf5c41701b4354f9039e2d40475d0a143c99ea881 (patch)
tree6eee13ad9a6f64c257848734bb8f23142d2ea140
parentbbf14b56fea7aff46a527accacd8a421d3e0b590 (diff)
Revert ac0d80ee which broke both Mac OS and HP-UX [R. Belmont]
-rw-r--r--src/devices/cpu/m68000/m68kmmu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/cpu/m68000/m68kmmu.h b/src/devices/cpu/m68000/m68kmmu.h
index 706426fe43b..8de83bace04 100644
--- a/src/devices/cpu/m68000/m68kmmu.h
+++ b/src/devices/cpu/m68000/m68kmmu.h
@@ -126,7 +126,7 @@ void pmmu_atc_add(u32 logical, u32 physical, int fc, const int rw)
{
// get page size (i.e. # of bits to ignore); is 10 for Apollo
int ps = (m_mmu_tc >> 20) & 0xf;
- const u32 atc_tag = M68K_MMU_ATC_VALID | ((fc &7) << 24)| logical >> ps;
+ const u32 atc_tag = M68K_MMU_ATC_VALID | ((fc & 7) << 24) | ((logical >> ps) << (ps - 8));
u32 atc_data = (physical >> ps) << (ps - 8);
if (m_mmu_tmp_sr & (M68K_MMU_SR_BUS_ERROR|M68K_MMU_SR_INVALID|M68K_MMU_SR_SUPERVISOR_ONLY))