This question is mostly for Gabe. In the ROCm runtime we see some inline asm 
for specific CPUID functions. They first use CPUID to determine the name string 
for the processor, and when it seems the "M5 Simulator" as the vendor it 
defaults to Intel and sends along the CPUID request with the Intel-specific ID 
for cache config descriptors. The ID used by Intel is different than is used by 
AMD for the same function.
I am just wondering what your thoughts are about implementing these functions. 
Do we implement the CPUID functions for only one vendor? Is there a way to make 
it configurable?

Currently I am not bothering to implement it, I am simply returning {0x0, 0x0, 
0x0, 0x0} and issuing a warn (in cupid.cc), but I still need to add the 
particular ID to the StandardCpuidFunction enums in order for it to be 
considered in the switch statement.
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to