* armsupp.c (ARMul_SwitchMode): Remove SYSTEMBANK cases.
+2000-07-04 Alexandre Oliva <aoliva@redhat.com>
+
+ * armdefs.h (SYSTEMBANK): Define as USERBANK.
+ * armsupp.c (ARMul_SwitchMode): Remove SYSTEMBANK cases.
+
2000-06-22 Alexandre Oliva <aoliva@cygnus.com>
* armemu.c (Multiply64): Fix computation of flag N.
#define ABORTBANK 4
#define UNDEFBANK 5
#define DUMMYBANK 6
-#define SYSTEMBANK 7
+#define SYSTEMBANK USERBANK
#define BANK_CAN_ACCESS_SPSR(bank) \
((bank) != USERBANK && (bank) != SYSTEMBANK && (bank) != DUMMYBANK)
{ /* really need to do it */
switch (oldbank)
{ /* save away the old registers */
- case SYSTEMBANK:
- /* The System mode uses the USER bank. */
- oldbank = USERBANK;
- /* Fall through. */
case USERBANK:
case IRQBANK:
case SVCBANK:
switch (newbank)
{ /* restore the new registers */
- case SYSTEMBANK:
- newbank = USERBANK;
- /* Fall through. */
case USERBANK:
case IRQBANK:
case SVCBANK: