mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Extend sanity check for vfpu reordering array.
This commit is contained in:
parent
f9f6e9492d
commit
50a589ea72
1 changed files with 14 additions and 4 deletions
|
@ -140,10 +140,20 @@ MIPSState::MIPSState()
|
|||
}
|
||||
|
||||
// Sanity check that things that should be ordered are ordered.
|
||||
const int firstEight[8] = { 0x0, 0x20, 0x40, 0x60, 0x1, 0x21, 0x41, 0x61 };
|
||||
for (int i = 0; i < 8; i++) {
|
||||
if (voffset[firstEight[i]] != i) {
|
||||
ERROR_LOG(CPU, "Wrong voffset order! %i: %i should have been %i", firstEight[i], voffset[firstEight[i]], i);
|
||||
static const u8 firstThirtyTwo[] = {
|
||||
0x0, 0x20, 0x40, 0x60,
|
||||
0x1, 0x21, 0x41, 0x61,
|
||||
0x2, 0x22, 0x42, 0x62,
|
||||
0x3, 0x23, 0x43, 0x63,
|
||||
|
||||
0x4, 0x24, 0x44, 0x64,
|
||||
0x5, 0x25, 0x45, 0x65,
|
||||
0x6, 0x26, 0x46, 0x66,
|
||||
0x7, 0x27, 0x47, 0x67,
|
||||
};
|
||||
for (int i = 0; i < ARRAY_SIZE(firstThirtyTwo); i++) {
|
||||
if (voffset[firstThirtyTwo[i]] != i) {
|
||||
ERROR_LOG(CPU, "Wrong voffset order! %i: %i should have been %i", firstThirtyTwo[i], voffset[firstThirtyTwo[i]], i);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue