Skip to content

Commit

Permalink
Remove logger from immutables.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sarah Mount committed Aug 4, 2016
1 parent 6377361 commit 9a31f69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions revelation/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def write(self, start_addr, num_bytes, value, from_core=0x808):
class Memory(object):
"""Sparse memory model adapted from Pydgin.
"""
_immutable_fields_ = ['block_size', 'addr_mask', 'block_mask', 'logger']
_immutable_fields_ = ['block_size', 'addr_mask', 'block_mask']

def __init__(self, block_size=2**20, logger=None):
self.block_size = block_size
Expand Down Expand Up @@ -166,7 +166,7 @@ class MemoryMappedRegisterFile(object):
"""Simulate the memory-mapped registers of a single Epiphany core.
Note that memory objects can only read and write aligned words.
"""
_immutable_fields_ = ['debug_nchars', 'num_regs', 'coreid', 'logger']
_immutable_fields_ = ['debug_nchars', 'num_regs', 'coreid']

def __init__(self, memory, coreid, logger):
self.debug = Debug()
Expand Down

0 comments on commit 9a31f69

Please sign in to comment.