Oh FFS. LOAD_CLOCK.

This commit is contained in:
Ben Vanik
2014-01-08 00:12:22 -08:00
parent a8ade5d33b
commit 894f22cd0b
7 changed files with 40 additions and 7 deletions

View File

@@ -498,13 +498,7 @@ XEEMITTER(mfspr, 0x7C0002A6, XFX)(PPCHIRBuilder& f, InstrData& i) {
}
XEEMITTER(mftb, 0x7C0002E6, XFX)(PPCHIRBuilder& f, InstrData& i) {
Value* time;
LARGE_INTEGER counter;
if (QueryPerformanceCounter(&counter)) {
time = f.LoadConstant(counter.QuadPart);
} else {
time = f.LoadZero(INT64_TYPE);
}
Value* time = f.LoadClock();
f.StoreGPR(i.XFX.RT, time);
return 0;