abort should remember d/i-page in bit 4 of mmr0

This commit is contained in:
folkert van heusden 2023-03-25 21:05:10 +01:00
parent a571609304
commit 017339a768
Signed by untrusted user who does not match committer: folkert
GPG key ID: 6B6455EDFEED3BD1

View file

@ -562,6 +562,8 @@ uint32_t bus::calculate_physical_address(const int run_mode, const uint16_t a, c
MMR0 |= run_mode << 5; // TODO: kernel-mode or user-mode when a trap occurs in user-mode?
MMR0 |= apf << 1; // add current page
MMR0 |= d << 4;
}
DOLOG(debug, true, "MMR0: %06o", MMR0);
@ -618,6 +620,8 @@ uint32_t bus::calculate_physical_address(const int run_mode, const uint16_t a, c
MMR0 &= ~(3 << 5);
MMR0 |= run_mode << 5;
MMR0 |= d << 4;
}
if (is_write)