Skip to content

Commit 4b512f8

Browse files
authored
Add cache sizes for Z14
from patch provided by aarnez in #991
1 parent 72d3e7c commit 4b512f8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cpuid_zarch.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,14 @@ void get_cpuconfig(void)
114114
break;
115115
case CPU_Z14:
116116
printf("#define Z14\n");
117+
printf("#define L1_DATA_SIZE 131072\n");
118+
printf("#define L1_DATA_LINESIZE 256\n");
119+
printf("#define L1_DATA_ASSOCIATIVE 8\n");
120+
printf("#define L2_SIZE 4194304\n");
121+
printf("#define L2_LINESIZE 256\n");
122+
printf("#define L2_ASSOCIATIVE 8\n");
117123
printf("#define DTB_DEFAULT_ENTRIES 64\n");
124+
printf("#define DTB_SIZE 4096\n");
118125
break;
119126
}
120127
}

0 commit comments

Comments
 (0)