comment ISACaller setup
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 17 Jun 2020 14:24:27 +0000 (15:24 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 17 Jun 2020 14:24:27 +0000 (15:24 +0100)
src/soc/decoder/isa/caller.py

index 504ab94a69e4960184a925e24e707f2de5e923d0..ec6af39c8ed30fb79b373443a2c59d24cc3da73e 100644 (file)
@@ -240,12 +240,14 @@ class ISACaller:
             for i, code in enumerate(disassembly):
                 self.disassembly[i*4 + self.fake_pc] = code
 
+        # set up registers, instruction memory, data memory, PC, SPRs, MSR
         self.gpr = GPR(decoder2, regfile)
         self.mem = Mem(row_bytes=8, initial_mem=initial_mem)
         self.imem = Mem(row_bytes=4, initial_mem=initial_insns)
         self.pc = PC()
         self.spr = SPR(decoder2, initial_sprs)
         self.msr = SelectableInt(initial_msr, 64) # underlying reg
+
         # TODO, needed here:
         # FPR (same as GPR except for FP nums)
         # 4.2.2 p124 FPSCR (definitely "separate" - not in SPR)