[Libre-soc-bugs] [Bug 580] New: PowerDecoder needs to redirect MMU SPRs to the MMU

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Sat Jan 23 13:49:15 GMT 2021


https://bugs.libre-soc.org/show_bug.cgi?id=580

            Bug ID: 580
           Summary: PowerDecoder needs to redirect MMU SPRs to the MMU
           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: ---

see http://lists.libre-soc.org/pipermail/libre-soc-dev/2021-January/001882.html

the SPR operations all default to
going to the SPR pipeline, where in this case we don't want that: we
want some to go to the MMU pipeline.

https://git.libre-soc.org/?p=soc.git;a=blob;f=src/soc/decoder/power_decoder2.py;hb=HEAD#l728

the field you want to modify is fn_unit: use the following pattern:

 fu = self.op_get("function_unit")
 if fu is not None:
     if self.dec.op.internal_op == OP_MTMSR:
        if spr_out == {whatever}:
           self.do_copy("fn_unit", Function.MMU)

same thing for spr in, for MFMSR

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-soc-bugs mailing list