i8254: Update base freq to more closely match Xbox

This commit is contained in:
Matt Borgerson 2021-01-04 01:08:17 -07:00 committed by mborgerson
parent 66f2e9decd
commit d31a207e35
1 changed files with 8 additions and 0 deletions

View File

@ -29,7 +29,15 @@
#include "hw/isa/isa.h"
#include "qapi/error.h"
#ifdef XBOX
/* FIXME: As 8254 code is written, this cannot be exactly 1125000, as counter
* will always trigger w/ how Xbox software configures PIT. Use a small delta
* for now.
*/
#define PIT_FREQ 1125001
#else
#define PIT_FREQ 1193182
#endif
typedef struct PITChannelInfo {
int gate;