Move CP15 enum definitions into their own enum.

Also gets rid of preprocessor mumbo-jumbo
This commit is contained in:
Lioncash
2015-04-06 12:43:23 -04:00
parent 23dd2ca8a6
commit b7b8b67620
5 changed files with 163 additions and 168 deletions

View File

@ -91,7 +91,7 @@ struct ARMul_State
ARMword exclusive_tag; // The address for which the local monitor is in exclusive access mode
ARMword exclusive_state;
ARMword exclusive_result;
ARMword CP15[VFP_BASE - CP15_BASE];
ARMword CP15[CP15_REGISTER_COUNT];
ARMword VFP[3]; // FPSID, FPSCR, and FPEXC
// VFPv2 and VFPv3-D16 has 16 doubleword registers (D0-D16 or S0-S31).
// VFPv3-D32/ASIMD may have up to 32 doubleword registers (D0-D31),