mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2024-11-25 23:25:40 +00:00
- Added check of reserved flag back into PPC stwcx. instruction
This commit is contained in:
parent
45dd662dee
commit
b94537341d
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue