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:
6
src/io.c
6
src/io.c
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user