VOGONS


First post, by superfury

User metadata
Rank l33t++
Rank
l33t++

Since I now know the x86(at least up to 80386) opcode emulation itself should be in working order(having validated everything but protected-mode and related functionality due to lack of known tests), I want to run some x86 protected mode validation tests.

The only problem is, that I barely know an can't find any. I know of the CheckIt! Diagnostics tests, which passes. test386.asm also tests it a little bit(no errors there). I've also ran the NSSI protected mode test, which succeeds.

Author of the UniPCemu emulator.
UniPCemu Git repository
UniPCemu for Android, Windows, PSP, Vita and Switch on itch.io

Reply 2 of 2, by superfury

User metadata
Rank l33t++
Rank
l33t++

After the latest test386.asm additions(VERR/VERW) I've found a bug in the handling of conforming code segments(where DPL>MAX(CPL,RPL) was supposed to fault only). In UniPCemu, there reverse was the case(it was handling them as normal data/system segments, thus faulting in the case where DPL<MAX(CPL,RPL), thus a CPL=3, RPL=3, DPL=0/1/2 conforming code segment would cause a fault, when it shouldn't). Luckily that case is now checked by the test386.asm testsuite, so I found that bug in all those cases 😁

Author of the UniPCemu emulator.
UniPCemu Git repository
UniPCemu for Android, Windows, PSP, Vita and Switch on itch.io