Changes to update_tsc() - no longer requires a parameter and advances by all the currently accumulated cycles. Also changed TSC-related delta's to be correctly uint64_t.

This commit is contained in:
OBattler
2020-05-14 01:36:52 +02:00
parent 0bfaf059e8
commit 3a401af84e
3 changed files with 28 additions and 11 deletions

View File

@@ -331,7 +331,7 @@ outb(uint16_t port, uint8_t val)
if (!found) {
sub_cycles(io_delay);
if (cpu_use_dynarec && (port == 0xeb))
update_tsc(io_delay);
update_tsc();
}
io_log("(%i, %i, %04i) outb(%04X, %02X)\n", in_smm, found, qfound, port, val);
@@ -424,7 +424,7 @@ outw(uint16_t port, uint16_t val)
if (!found) {
sub_cycles(io_delay);
if (cpu_use_dynarec && (port == 0xeb))
update_tsc(io_delay);
update_tsc();
}
io_log("(%i, %i, %04i) outw(%04X, %04X)\n", in_smm, found, qfound, port, val);
@@ -551,7 +551,7 @@ outl(uint16_t port, uint32_t val)
if (!found) {
sub_cycles(io_delay);
if (cpu_use_dynarec && (port == 0xeb))
update_tsc(io_delay);
update_tsc();
}
io_log("(%i, %i, %04i) outl(%04X, %08X)\n", in_smm, found, qfound, port, val);