From: Tobias Platen Date: Thu, 4 Mar 2021 19:05:44 +0000 (+0100) Subject: ISACaller: add option mmu X-Git-Tag: convert-csv-opcode-to-binary~119 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=19978231e253383fc2707b79b704cfa54c35b278;p=soc.git ISACaller: add option mmu --- diff --git a/src/soc/decoder/isa/caller.py b/src/soc/decoder/isa/caller.py index bfa2eb03..4ee49443 100644 --- a/src/soc/decoder/isa/caller.py +++ b/src/soc/decoder/isa/caller.py @@ -723,7 +723,8 @@ class ISACaller: initial_insns=None, respect_pc=False, disassembly=None, initial_pc=0, - bigendian=False): + bigendian=False, + mmu=False): self.bigendian = bigendian self.halted = False @@ -763,6 +764,8 @@ class ISACaller: self.svstate = initial_svstate self.gpr = GPR(decoder2, self, self.svstate, regfile) self.mem = Mem(row_bytes=8, initial_mem=initial_mem) + if mmu: + self.mem = RADIX(self.mem,self) self.imem = Mem(row_bytes=4, initial_mem=initial_insns) self.pc = PC() self.spr = SPR(decoder2, initial_sprs)