disassembly=None,
initial_pc=0):
+ self.halted = False
self.respect_pc = respect_pc
if initial_sprs is None:
initial_sprs = {}
return asmop
def call(self, name):
+ if self.halted:
+ print ("halted - not executing", name)
+ return
+
# TODO, asmregs is from the spec, e.g. add RT,RA,RB
# see http://bugs.libre-riscv.org/show_bug.cgi?id=282
asmop = yield from self.get_assembly_name()
self.pc.update(self.namespace)
return
+ if name == 'attn':
+ self.halted = True
+ return
+
info = self.instrs[name]
yield from self.prep_namespace(info.form, info.op_fields)