hardwaredb/include/setcpu.h

32 lines
797 B
C
Raw Normal View History

// void setCPU(){};
2025-01-28 19:47:41 -07:00
/* this function's Incoming arguments are a pointer to the CPU class
"CPU *pCPU" and the new mainclock speed
*/
2025-01-28 20:59:13 -07:00
void setCPUclock(CPU *pCPU, float mmainclock, float mboostclock) {
cout << "Coming from the setCPUclock function in setcpu.h" << endl;
pCPU->mainclock = mmainclock;
2025-01-28 20:59:13 -07:00
pCPU->boostclock = mboostclock;
cout << "Incoming main clock variable was: " << mmainclock << endl;
cout << "Leaving setCPUclock()\n\n";
}
void setCPUarch(CPU *pCPU, std::string march) {
pCPU->architecture = march;
}
void setCPUbits(CPU *pCPU, int mbits) {
pCPU->bits64 = mbits;
}
void setCPUcores(CPU *pCPU, int mcores) {
pCPU->cores = mcores;
}
void setCPUthreads(CPU *pCPU, int mthreads) {
pCPU->threads = mthreads;
// create an IF catch to set threads cores * 2 as a fall back
}