self.assertEqual(sim.spr['SRR0'], 8) # PC to return to: CIA+4
self.assertEqual(sim.spr['SRR1'], SRR1) # MSR to restore after sc return
+
+ # FIXME this is currently hardcoded to the same way as in test_trap.py.
+ # However, I'd have expected 0x9000000000002903, not 0x9000000000000001.
+ MSR = SelectableInt(0x9000000000000001, 64)
self.assertEqual(sim.msr, MSR) # MSR changed to this by sc/trap
+
print("SYSCALL SRR1", hex(int(SRR1)), hex(int(sim.spr['SRR1'])))
print("SYSCALL MSR", hex(int(MSR)), hex(int(sim.msr)), hex(DEFAULT_MSR))
return sim