From 650b8cb5dafd18ec90c8c98c9a523336d6f654eb Mon Sep 17 00:00:00 2001 From: SarahW Date: Fri, 26 Apr 2019 15:16:33 +0100 Subject: [PATCH] Fix waitstate on accessing timer on timer registers on Premiere/PCI and Packard Bell PB520R. --- src/intel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel.c b/src/intel.c index 85ebcbf..5fcbdbb 100644 --- a/src/intel.c +++ b/src/intel.c @@ -64,7 +64,7 @@ static uint8_t batman_timer_read(uint16_t addr, void *p) { uint16_t batman_timer_latch; - cycles -= (int)PITCONST; + cycles -= (int)(PITCONST >> 32); batman_timer_latch = timer_get_remaining_us(&batman_timer);