16 Nov
2023
16 Nov
'23
12:45 p.m.
Rémi Bernon (@rbernon) commented about programs/wineboot/wineboot.c:
+ if (ReadFile( handle, buf, sizeof(buf) - 1, &num_read, NULL ) && strcmp( "tsc", buf )) + ret = FALSE; + + CloseHandle( handle ); + return ret; +} + +static void initialize_qpc_features( struct _KUSER_SHARED_DATA *data, UINT64 *tsc_frequency ) +{ + BOOL has_rdtscp = FALSE; + int regs[4]; + + data->QpcBypassEnabled = 0; + data->QpcFrequency = TICKSPERSEC; + data->QpcShift = 0; + data->QpcBias = 0; I don't think we really need these. At least not in this MR, it was used in an attempt at implementing Qpc bypass, but that ended up complicated.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/4409#note_52517