From: Luke Kenneth Casson Leighton Date: Sun, 7 Mar 2021 15:05:24 +0000 (+0000) Subject: add SVSTATE read to DMI interface X-Git-Tag: convert-csv-opcode-to-binary~93 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4d5482810c980ff927ccec62968a40a490ea86eb;p=soc.git add SVSTATE read to DMI interface --- diff --git a/src/soc/debug/dmi.py b/src/soc/debug/dmi.py index 39ea799b..4d897699 100644 --- a/src/soc/debug/dmi.py +++ b/src/soc/debug/dmi.py @@ -25,6 +25,7 @@ class DBGCore: LOG_DATA = 0b0111 # Log buffer data register CR = 0b1000 # CR (read only) XER = 0b1001 # XER (read only) - note this is a TEMPORARY hack + SVSTATE = 0b1010 # SVSTATE register (read only for now) # CTRL register (direct actions, write 1 to act, read back 0) @@ -177,6 +178,8 @@ class CoreDebug(Elaboratable): comb += dmi.dout.eq(self.state.pc) with m.Case( DBGCore.MSR): comb += dmi.dout.eq(self.state.msr) + with m.Case( DBGCore.SVSTATE): + comb += dmi.dout.eq(self.state.svstate) with m.Case( DBGCore.GSPR_DATA): comb += dmi.dout.eq(d_gpr.data) with m.Case( DBGCore.LOG_ADDR):