see soc/fu/trap/main_stage.py trap() function, and:
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 18 Jan 2022 13:44:45 +0000 (13:44 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 18 Jan 2022 13:44:53 +0000 (13:44 +0000)
commita679756bdbff0fafb27fc686ffccb96d8c7072e2
tree93bd06ff4df75d1512ac3711e39081b63e91be97
parentb55f37ee14b3253087f0a743eb795b53e59f25d2
see soc/fu/trap/main_stage.py trap() function, and:
https://libre-soc.org/irclog/%23libre-soc.2022-01-18.log.html#t2022-01-18T13:21:25
bits of SRR1 need to be preserved on an interrupt, which means that
PowerDecoder2 must schedule a read of SRR1.  the Power ISA spec
is extremely obscure and obtuse on which bits must be preserved,
therefore it is just easier to copy microwatt behaviour
src/openpower/decoder/power_decoder2.py