def __init__(self, mem, caller):
self.mem = mem
self.caller = caller
- if(caller):
+ if caller is not None:
self.dsisr = self.caller.spr["DSISR"]
self.dar = self.caller.spr["DAR"]
self.pidr = self.caller.spr["PIDR"]
(cur_srcstep != vl):
comb += update_svstate.eq(1)
comb += new_svstate.srcstep.eq(next_srcstep)
- sync += sv_changed.eq(1)
if not pred_dst_zero:
if (((1<<cur_dststep) & self.dstmask) == 0) and
(cur_dststep != vl):
comb += new_svstate.dststep.eq(next_dststep)
comb += update_svstate.eq(1)
- sync += sv_changed.eq(1)
if update_svstate:
m.next = "DECODE_SV"