From d31a207e358f27e4f271ba0debbec8799fe5d76a Mon Sep 17 00:00:00 2001 From: Matt Borgerson Date: Mon, 4 Jan 2021 01:08:17 -0700 Subject: [PATCH] i8254: Update base freq to more closely match Xbox --- include/hw/timer/i8254.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/hw/timer/i8254.h b/include/hw/timer/i8254.h index e75b4a5a08..8fdcd948e0 100644 --- a/include/hw/timer/i8254.h +++ b/include/hw/timer/i8254.h @@ -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;