Core: Fix up XContext

This commit is contained in:
zilmar 2022-10-03 11:29:21 +10:30
parent 42cc34964b
commit 82d9027374
2 changed files with 5 additions and 5 deletions

View File

@ -503,7 +503,7 @@ void CRegisters::DoAddressError(bool DelaySlot, uint64_t BadVaddr, bool FromRead
BAD_VADDR_REGISTER = BadVaddr; BAD_VADDR_REGISTER = BadVaddr;
CONTEXT_REGISTER.BadVPN2 = BadVaddr >> 13; CONTEXT_REGISTER.BadVPN2 = BadVaddr >> 13;
XCONTEXT_REGISTER.BadVPN2 = BadVaddr >> 13; XCONTEXT_REGISTER.BadVPN2 = BadVaddr >> 13;
XCONTEXT_REGISTER.R = BadVaddr >> 62; XCONTEXT_REGISTER.R = BadVaddr >> 61;
if (DelaySlot) if (DelaySlot)
{ {

View File

@ -38,10 +38,10 @@ union COP0XContext
struct struct
{ {
unsigned : 4; uint64_t : 4;
unsigned BadVPN2 : 27; uint64_t BadVPN2 : 27;
unsigned R : 2; uint64_t R : 2;
unsigned PTEBase : 31; uint64_t PTEBase : 31;
}; };
}; };