- Added check of reserved flag back into PPC stwcx. instruction

This commit is contained in:
Nik Henson 2011-07-20 21:40:10 +00:00
parent 45dd662dee
commit b94537341d

View file

@ -1323,24 +1323,20 @@ static void ppc_stwcx_rc(UINT32 op)
else else
ea = REG(RA) + REG(RB); ea = REG(RA) + REG(RB);
/*if( ppc.reserved ) { if( ppc.reserved ) {
*/
WRITE32(ea, REG(RS)); WRITE32(ea, REG(RS));
ppc.reserved = 0; ppc.reserved = 0;
ppc.reserved_address = 0; ppc.reserved_address = 0;
CR(0) = 0x2; CR(0) = 0x2; // set EQ to indicate success
if( XER & XER_SO ) if( XER & XER_SO )
CR(0) |= 0x1; CR(0) |= 0x1;
/*
} else { } else {
//CR(0) = 0; CR(0) = 0;
CR(0) = 2; // set EQ to indicate success
if( XER & XER_SO ) if( XER & XER_SO )
CR(0) |= 0x1; CR(0) |= 0x1;
} }
*/
} }
static void ppc_stwu(UINT32 op) static void ppc_stwu(UINT32 op)