From 7a9fff6f8b548b981d350a23857482d101717a47 Mon Sep 17 00:00:00 2001 From: Neil Webber Date: Tue, 23 Apr 2024 07:55:16 -0500 Subject: [PATCH] was masking 18 bits not 16 in ubmap --- pdptests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdptests.py b/pdptests.py index 4f7741d..3797290 100644 --- a/pdptests.py +++ b/pdptests.py @@ -2128,7 +2128,7 @@ class TestMethods(unittest.TestCase): # that the rest of the code expects (and fiddles upper bits) # So ... test that. for i in range(0, 62, 2): - p.mmu.wordRW(ubmaps + (2 * i), i << 12 & 0o1777777) + p.mmu.wordRW(ubmaps + (2 * i), (i << 12) & 0o177777) p.mmu.wordRW(ubmaps + (2 * (i + 1)), 0) # XXX there is no real test yet because the UBMAPs