mirror of
https://github.com/libretro/Mu.git
synced 2026-09-22 22:56:12 +00:00
Fix half speed bug
This commit is contained in:
@@ -8,6 +8,7 @@ app install hack needs to be removed when SD card works
|
||||
double pressing power button issue
|
||||
|
||||
Fixed:
|
||||
device runs at around half speed for some reason(the SYSCLK divider was not scaled properly)
|
||||
Sound(those cute little PWM beeps)
|
||||
Mac Qt build has no icons
|
||||
QSettings is broken on Windows(this prevents loading the ROM)
|
||||
|
||||
@@ -162,10 +162,10 @@ static double dmaclksPerClk32(){
|
||||
}
|
||||
|
||||
static double sysclksPerClk32(){
|
||||
uint8_t sysclkSelect = registerArrayRead16(PLLCR) >> 8 & 0x0003;
|
||||
uint8_t sysclkSelect = registerArrayRead16(PLLCR) >> 8 & 0x0007;
|
||||
|
||||
//> 4 means run at full speed, no divider
|
||||
if(sysclkSelect > 4)
|
||||
//>= 4 means run at full speed, no divider
|
||||
if(sysclkSelect >= 4)
|
||||
return dmaclksPerClk32();
|
||||
|
||||
//divide DMACLK by 2 to the power of PLLCR SYSCLKSEL
|
||||
|
||||
Reference in New Issue
Block a user