Skip to content

Commit

Permalink
Update mmu
Browse files Browse the repository at this point in the history
  • Loading branch information
vpinheiro38 committed Jun 10, 2019
1 parent f16367b commit 0ea7545
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mmu.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ def allocatePage(self, process, ref, cpuProcess=None):

else:
ram_ind, oldIndex = self.mem_ram.allocatePage(process, ref, cpuProcess=cpuProcess, hadSubstitution=False)

if oldIndex != -1 and oldIndex != None:
self.mem_vm[oldIndex] = [None, 0]

Expand Down

0 comments on commit 0ea7545

Please sign in to comment.