From 5bf9f4d7828070af797646726d15a72b04d0d724 Mon Sep 17 00:00:00 2001 From: folkert van heusden Date: Mon, 24 Jun 2024 09:04:33 +0200 Subject: [PATCH] micro opt --- mmu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mmu.h b/mmu.h index f99013e..6f4e92a 100644 --- a/mmu.h +++ b/mmu.h @@ -82,7 +82,7 @@ public: void show_state(console *const cnsl) const override; 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_written_to(const int run_mode, const bool d, const int apf) { pages[run_mode][d][apf].pdr |= 1 << 6; }