36 lines
902 B
C++
36 lines
902 B
C++
// void setCPU(){};
|
|
|
|
/* this function's Incoming arguments are a pointer to the CPU class
|
|
"CPU *pCPU" and the new mainclock speed
|
|
*/
|
|
void setCPUclock(CPU *pCPU, float mmainclock, float mboostclock) {
|
|
cout << "Coming from the setCPUclock function in setcpu.h" << endl;
|
|
|
|
pCPU->mainclock = mmainclock;
|
|
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
|
|
}
|
|
void setCPUmanufacturer(CPU *pCPU, std::string mmanufacturer) {
|
|
pCPU->manufacturer = mmanufacturer;
|
|
}
|
|
|
|
|