This returns "cortex-a73" for second-generation Kryo; not precisely correct, but close enough.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
Hi Eli,
Thanks for adding this.
I expect you to have a much better understanding of Kryo cores, so I can't add much comments on the specific constants you added in the code for those.
For Cortex-A73, the constants in this patch seem incorrect, looking at the Cortex-A73 TRM, see my detailed comments.
Thanks!
Kristof
lib/Support/Host.cpp | ||
---|---|---|
211 | The summary of this patch states returning cortex-a73 for second-generation Kryo, but this patch also introduces returning "kryo" for "0x211". Just checking if this was intentional. | |
unittests/Support/Host.cpp | ||
108–110 | I don't have easy access to a Cortex-A73 system at the moment, but I'd expect the CPU implementer for a Cortex-A73 be 0x41, the same as for other Arm-designed cores. |
lib/Support/Host.cpp | ||
---|---|---|
211 | Yes, intentional; 0x211 is first-generation Kryo. | |
unittests/Support/Host.cpp | ||
108–110 | Kryo second-generation is not a Cortex-A73. It's just close enough from the compiler's perspective that it isn't worth distinguishing here. (getHostCPUNameForARM already has separate detection code for actual A73 CPUs.) |
unittests/Support/Host.cpp | ||
---|---|---|
108–110 | ah - apologies, I didn't look at enough context code of this change. |
The summary of this patch states returning cortex-a73 for second-generation Kryo, but this patch also introduces returning "kryo" for "0x211". Just checking if this was intentional.