fix 64 lut off by one
This commit is contained in:
1 parent
6fa9e5ae29
commit
9b1aab4128
2 files changed
+19
-19
No files matched your search
@@ -746,19 +746,19 @@ namespace board {
|
||||
}
|
||||
|
||||
void InitializeCpuLut(bool kip) {
|
||||
if(kip) {
|
||||
LutSize = 63; /* Account for patched LUT by KIP */
|
||||
if (kip) {
|
||||
LutSize = 64; /* Account for patched LUT by KIP */
|
||||
}
|
||||
|
||||
|
||||
InitializeLutPtr();
|
||||
|
||||
CacheCpuLut();
|
||||
|
||||
|
||||
cpuVoltData.outputCfg = *reinterpret_cast<volatile u32 *>(cldvfs + CL_DVFS_OUTPUT_CFG_0);
|
||||
|
||||
cpuVoltData.initialized = true;
|
||||
|
||||
for(u32 i = 0; i < LutSize + 1; i++) {
|
||||
for (u32 i = 0; i < LutSize; i++) {
|
||||
file::utils::LogLine("[dvfs] CPU Real LUT %d: %dmV", i, GetLutVolt(*(u32*)(cldvfs + CL_DVFS_LUT_TABLE_0 + (i * sizeof(u32)))));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user