testmem = {
+ 0x1000: # data to be read
+ 0x1337,
+
0x10000: # PARTITION_TABLE_2 (not implemented yet)
# PATB_GR=1 PRTB=0x1000 PRTS=0xb
0x800000000100000b,
initial_regs[1] = 0x1000
initial_regs[2] = 0x1234
sim = self.run_tst_program(program,initial_regs=initial_regs)
- print(sim.gpr(1))
- self.assertEqual(sim.gpr(3), SelectableInt(0x1234, 64))
+ #dump registers into file
+ #f = open("/tmp/debug.txt","w")
+ #for i in range(1,12):
+ # l = "r"+str(i)+" = "+str(sim.gpr(i))+"\n"
+ # f.write(l)
+ self.assertEqual(sim.gpr(3), SelectableInt(0x1337, 64))
def run_tst_program(self, prog, initial_regs=[0] * 32):
# set up dummy minimal ISACaller