From 19978231e253383fc2707b79b704cfa54c35b278 Mon Sep 17 00:00:00 2001 From: Tobias Platen Date: Thu, 4 Mar 2021 20:05:44 +0100 Subject: [PATCH] ISACaller: add option mmu --- src/soc/decoder/isa/caller.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- 2.30.2