hardwaredb/include/setcpu.h

31 lines
811 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
*/
void setCPUmainclock(CPU *pCPU, string mkey, string mmainclock) {
pCPU->HardwareSpecs[mkey] = mmainclock;
}
void setCPUboostclock(CPU *pCPU, string mkey, string mboostclock) {
pCPU->HardwareSpecs[mkey] = mboostclock;
}
void setCPUarch(CPU *pCPU, string mkey, std::string march) {
pCPU->HardwareSpecs[mkey] = march;
}
void setCPUbits(CPU *pCPU, string mkey, int mbits) {
pCPU->HardwareSpecs[mkey] = mbits;
}
void setCPUcores(CPU *pCPU, string mkey, int mcores) {
pCPU->HardwareSpecs[mkey] = mcores;
}
void setCPUthreads(CPU *pCPU, string mkey, int mthreads) {
pCPU->HardwareSpecs[mkey] = mthreads;
// create an IF catch to set threads cores * 2 as a fall back
}