[Libre-soc-bugs] [Bug 603] New: use SPR names/numbers from sprs.csv
bugzilla-daemon at libre-soc.org
bugzilla-daemon at libre-soc.org
Sat Feb 20 21:50:28 GMT 2021
https://bugs.libre-soc.org/show_bug.cgi?id=603
Bug ID: 603
Summary: use SPR names/numbers from sprs.csv
Product: Libre-SOC's first SoC
Version: unspecified
Hardware: PC
OS: Linux
Status: CONFIRMED
Severity: enhancement
Priority: ---
Component: Source Code
Assignee: lkcl at lkcl.net
Reporter: lkcl at lkcl.net
CC: libre-soc-bugs at lists.libre-soc.org
NLnet milestone: ---
Tobias, the SPR names/numbers are in sprs.csv. you can find the appropriate
names from running soc/decoder/power_enums.py, it deliberately prints out
the SPRs after reading sprs.csv
also remember spaces, and also to use SPR.DSISR.value (etc)
SPR_PID = 48 # TODO read docs for POWER9
# Microwatt doesn't implement the partition table
# instead has PRTBL register (SPR) to point to process table
SPR_PRTBL = 720 # see common.vhdl in microwatt, not in POWER9
with m.If(((self.dec.op.internal_op == MicrOp.OP_MTSPR) |
(self.dec.op.internal_op == MicrOp.OP_MFSPR)) &
((spr == SPR.DSISR) | (spr == SPR.DAR)
| (spr==SPR_PRTBL) | (spr==SPR_PID))):
comb += self.do_copy("fn_unit", Function.MMU)
with m.Else():
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the libre-soc-bugs
mailing list