order
This commit is contained in:
parent
8223536328
commit
c434d8e4d7
1 changed files with 2 additions and 2 deletions
4
mmu.cpp
4
mmu.cpp
|
@ -478,12 +478,12 @@ uint32_t mmu::calculate_physical_address(cpu *const c, const int run_mode, const
|
||||||
uint32_t m_offset = a;
|
uint32_t m_offset = a;
|
||||||
|
|
||||||
if (is_enabled() || (is_write && (getMMR0() & (1 << 8 /* maintenance check */)))) {
|
if (is_enabled() || (is_write && (getMMR0() & (1 << 8 /* maintenance check */)))) {
|
||||||
uint8_t apf = a >> 13; // active page field
|
|
||||||
|
|
||||||
bool d = space == d_space && get_use_data_space(run_mode);
|
bool d = space == d_space && get_use_data_space(run_mode);
|
||||||
|
|
||||||
uint16_t p_offset = a & 8191; // page offset
|
uint16_t p_offset = a & 8191; // page offset
|
||||||
|
|
||||||
|
uint8_t apf = a >> 13; // active page field
|
||||||
|
|
||||||
m_offset = get_physical_memory_offset(run_mode, d, apf);
|
m_offset = get_physical_memory_offset(run_mode, d, apf);
|
||||||
m_offset += p_offset;
|
m_offset += p_offset;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue