I've been sick or traveling for a while, and wanted a meaty but standalone techn...

@cliffle@hachyderm.io

I've been sick or traveling for a while, and wanted a meaty but standalone technical thing to chew on to try and get my head back into the game.

I decided to finally sit down and attempt to reverse engineer the dual-issue restrictions, result latency, and pipeline forwarding paths of the Cortex-M7. (ARM are remarkably cagey about technical details on the M7.)

I needed a reasonably complex program to test, so based on a discussion at work, I've been writing an RV32I emulator for the M7. ...in assembly.

Conclusions after a few hours of work:
- The M7 is honestly more capable than I expected. You can sustain two instructions per clock in real code, including branches.
- I predict that the maximum performance for an RV32I emulator that isn't using tricks like JIT or massive pregen tables is in the neighborhood of 10-20 M7 cycles per emulated RV32I instruction.

I'll post more thoughts in the replies.