starting to hack in fetch failed (including OP_FETCH_FAILED)
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 12 Dec 2021 18:56:13 +0000 (18:56 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 12 Dec 2021 18:56:13 +0000 (18:56 +0000)
commitefb661852d1f46548a46a88d271b13d95c869957
treec7e3e86e4509eac93f5dab70168de4bded7a9f61
parentd1e3e51ef628393c3c589fa4646beae0d3956425
starting to hack in fetch failed (including OP_FETCH_FAILED)
going really badly as far as code-readability and clean design is concerned
but is progressing

a truly dreadful hack: OP_TRAP works (LDST Exceptions) because the
main decoder (PowerDecoder2) is used by core for the Trap pipeline.

unnnnfortunately... for MMU, a *Satellite* decoder (PowerDecodeSubset)
is used.  and Satellite decoders *only* understand *instructions*.
(which they part-decode locally).

therefore a manual override of the satellite decoder insn_type
and fn_unit is required when OP_FETCH_FAILED occurs.

truly awful.
src/soc/simple/core.py
src/soc/simple/issuer.py