early-access version 3473
This commit is contained in:
parent
c00c96d9d4
commit
98d7980992
2 changed files with 5 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
yuzu emulator early access
|
yuzu emulator early access
|
||||||
=============
|
=============
|
||||||
|
|
||||||
This is the source code for early-access 3472.
|
This is the source code for early-access 3473.
|
||||||
|
|
||||||
## Legal Notice
|
## Legal Notice
|
||||||
|
|
||||||
|
|
|
@ -49,7 +49,10 @@ static void TPAUSE() {
|
||||||
// At 2 GHz, 100K cycles is 50us
|
// At 2 GHz, 100K cycles is 50us
|
||||||
// At 4 GHz, 100K cycles is 25us
|
// At 4 GHz, 100K cycles is 25us
|
||||||
static constexpr auto PauseCycles = 100'000;
|
static constexpr auto PauseCycles = 100'000;
|
||||||
asm volatile("tpause %%ecx" : : "c"(0), "d"((FencedRDTSC() + PauseCycles) >> 32));
|
const auto tsc = FencedRDTSC() + PauseCycles;
|
||||||
|
const auto eax = static_cast<u32>(tsc & 0xFFFFFFFF);
|
||||||
|
const auto edx = static_cast<u32>(tsc >> 32);
|
||||||
|
asm volatile("tpause %0" : : "r"(0), "d"(edx), "a"(eax));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue