X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fsoc%2Fsimple%2Fissuer.py;h=176264efefed53534f19c0b00bf34d4c6f36ce28;hb=b263f3f6f134c2f1d9be78d69b1799b3fbd90b4d;hp=5f556d3e2aa765e413c8396683998079b180e7c1;hpb=8c449e2782facaa874b7820627565a1edb4111da;p=soc.git diff --git a/src/soc/simple/issuer.py b/src/soc/simple/issuer.py index 5f556d3e..176264ef 100644 --- a/src/soc/simple/issuer.py +++ b/src/soc/simple/issuer.py @@ -615,6 +615,9 @@ class TestIssuerBase(Elaboratable): # reset current state if core reset requested with m.If(core_rst): m.d.sync += self.cur_state.eq(0) + # and, sigh, set configured values, which are also done in regfile + m.d.sync += self.cur_state.pc.eq(self.core.pc_at_reset) + m.d.sync += self.cur_state.msr.eq(self.core.msr_at_reset) # check halted condition: requested PC to execute matches DMI stop addr # and immediately stop. address of 0xffff_ffff_ffff_ffff can never