Book-E and AIM trap.c are almost identical, except for a few bits. This is step
1 in unifying them. There are two things of note:
- booke setfault() also saves CTR and XER, which AIM does not. I don't know if
it should, or if booke should not be saving CTR and XER, so I want opinions as
the best way to do it.
- Some of the exception codes overlap between AIM and booke. I commented out
the EXC_RUNMODETRC case statement, because that exception code conflicts with
EXC_DEBUG for booke, and EXC_RUNMODETRC is documented as only on the ppc601,
which we do not support. However, since Book-E codes are entirely arbitrary
(using IVORs instead of fixed address offsets, which account for the exception
codes for AIM), I'd like to renumber them, so soliciting opinions on that as
well.