Skip to content

Commit 5bf9f4d

Browse files
micro opt
1 parent 7be8362 commit 5bf9f4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mmu.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class mmu : public device
8282
void show_state(console *const cnsl) const override;
8383

8484
bool is_enabled() const { return MMR0 & 1; }
85-
bool is_locked() const { return !!(MMR0 & 0160000); }
85+
bool is_locked() const { return MMR0 & 0160000; }
8686

8787
void set_page_trapped (const int run_mode, const bool d, const int apf) { pages[run_mode][d][apf].pdr |= 1 << 7; }
8888
void set_page_written_to(const int run_mode, const bool d, const int apf) { pages[run_mode][d][apf].pdr |= 1 << 6; }

0 commit comments

Comments
 (0)