MODE_UNDEFINED is 0x1B (not 0x1C) (#184)

In the cpu_modes array, MODE_UNDEFINED is at position 0x1C, but this mode value is actually 0x1B.
This commit is contained in:
andymcca 2023-01-21 20:44:23 +00:00 committed by GitHub
parent 4f3c9a5e58
commit 2fcbdc1d17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

4
cpu.c
View File

@ -1531,8 +1531,8 @@ const u32 cpu_modes[16] =
{
MODE_USER, MODE_FIQ, MODE_IRQ, MODE_SUPERVISOR,
MODE_INVALID, MODE_INVALID, MODE_INVALID, MODE_ABORT,
MODE_INVALID, MODE_INVALID, MODE_INVALID, MODE_INVALID,
MODE_UNDEFINED, MODE_INVALID, MODE_INVALID, MODE_SYSTEM
MODE_INVALID, MODE_INVALID, MODE_INVALID, MODE_UNDEFINED,
MODE_INVALID, MODE_INVALID, MODE_INVALID, MODE_SYSTEM
};
// ARM/Thumb mode is stored in the flags directly, this is simpler than