micro opt

This commit is contained in:
folkert van heusden 2024-06-24 09:04:33 +02:00
parent 7be8362ed4
commit 5bf9f4d782
Signed by untrusted user who does not match committer: folkert
GPG key ID: 6B6455EDFEED3BD1

2
mmu.h
View file

@ -82,7 +82,7 @@ public:
void show_state(console *const cnsl) const override; void show_state(console *const cnsl) const override;
bool is_enabled() const { return MMR0 & 1; } bool is_enabled() const { return MMR0 & 1; }
bool is_locked() const { return !!(MMR0 & 0160000); } bool is_locked() const { return MMR0 & 0160000; }
void set_page_trapped (const int run_mode, const bool d, const int apf) { pages[run_mode][d][apf].pdr |= 1 << 7; } void set_page_trapped (const int run_mode, const bool d, const int apf) { pages[run_mode][d][apf].pdr |= 1 << 7; }
void set_page_written_to(const int run_mode, const bool d, const int apf) { pages[run_mode][d][apf].pdr |= 1 << 6; } void set_page_written_to(const int run_mode, const bool d, const int apf) { pages[run_mode][d][apf].pdr |= 1 << 6; }