Setting the condition bit in stwcx.

This commit is contained in:
Ben Vanik 2013-02-03 21:45:44 -08:00
parent 7fed5cf579
commit f1ea74dcff
1 changed files with 3 additions and 1 deletions

View File

@ -1084,7 +1084,9 @@ XEEMITTER(stwcx, 0x7C00012D, X )(FunctionGenerator& g, IRBuilder<>& b, I
}
Value* v = g.gpr_value(i.D.RT);
g.WriteMemory(i.address, ea, 4, v, /* release */ true);
// TODO(benvanik): update CR0
// We always succeed.
g.update_cr_value(0, b.getInt64(1 << 2));
return 0;
}