Overclock support for all SH3 and SH4 calculators supported by Gint/fxSDk : Fx9860Gs and fxCGs #23
Loading…
Reference in New Issue
No description provided.
Delete Branch "Slyvtt/gint:dev"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Addition of fx-9860GII and GII-2/G35+EII SH4 based parameters in overclock functions.
Refactored the code (removed #ifdef FXCG50) and added escape on !isSH4() within functions in order to be able to handle SH3 based calculators (not done yet).
Settings are coming from FTune2 for fx-9860GII and from FTune3 for fx-9860GII-2/G35+EII.
A double check of all setting values would be highly welcomed.
Not tested yet cause no calculators with me ... handle with care :D
SH3 based to come soon.
Added today the first part of OC for SH3 MPUs.
Configurations names have been changed for clarity.
in cpg/overclock.c:
added #defines for CPGSH3, WDTSH3 and BSCSH3 added #defines for DIVs/PLLs for both SH3 and SH4 (bit configuration is not the same between both MPUs)
clock_set_speed() is unchanged yet, not sure it work with SH3 MPUs
clock_get_speed() changed for SH3 support (one register is missing and one is uint16_t instead of uint32_t)
right now it compiles, need to be tested with real hardware.
Made some tests on several SH4 and SH3 calculators.
All SH4 (CG50 (ie Graph 90 in my case) / CG10/20 (ie CG20 in my case) and G35+EII) are working great.
Only G35+ SH4 based are not tested.
For SH3, the CPU is correctly accelerated. Timers frequency is not adjusted so sleep_ms functions are not waiting the right amount of time (ex: when CPU is OCed x4, sleep_ms( 10000 ) actually waits only 2.5s.
cannot find the reason of such inconsistency, should be handle by functions sh_probe within cpg.c.
if you can have a look Lephe, that would be really great.
Corrected the calculation method of frequencies Pphi_f and Iphi_f for SH3 into sh7705_probe() within cpg.c.
now OC is working and timers are correctly ajusted to accomodate the frequency change.
I let you review and if possible test on FX9860G_SH4 architecture cause I haven't got one.
Cheers ...
WIP : Addition of fx-9860GII and GII-2/G35+EII SH4 based parameters in overclock functionsto Overclock support for all SH3 and SH4 calculators supported by Gint/fxSDk : Fx9860Gs and fxCGsChanged title to reflect correct progress.
That's now merged (by hand). Your
dev
branch should have been fully merged by now so consider resetting it to the upstreamdev
branch so you can start again clean.Perfect, thanks Lephe. Will try to upgrade cleanliness of my PR for next proposals :D Good job Man !!
Pull request closed