[Libre-soc-bugs] [Bug 859] Implement SPR_KAIVB

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Thu Jun 16 19:42:15 BST 2022


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

--- Comment #2 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
adding this new SPR is tricky, there are two techniques:

1) add to CoreState as a peer of DEC and TB. this requires hooking
   into how DEC and TB read from a State regfile port.

   complicated.

2) have the cached copy in the Trap pipeline which handles
   *all* exceptions/interrupts.

   in PowerDecode2 spot the read/write to the SPR, manually
   redirect the pipeline unit, and then add OP_MTSPR
   and OP_MFSPR to the trap pipeline

   this is already done for LDST (loadstore1.py)



also needs adding to sprs.csv

also needs qualifying as a "fast" spr in decoder/enums.py
(decoder/sprs.py i think)

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


More information about the libre-soc-bugs mailing list