Re: [gem5-dev] Implementing leaf 4 of cpuid

2017-12-13 Thread Sam Xi
Hi Jason, Thanks! I think this makes sense. I'll give this a go and submit a patch if/when I think it's ready. As far as I know, different cores can respond differently to cpuid (e.g. two separate clusters of cores). It depends a lot on what features are being queried, so having some additional

Re: [gem5-dev] Implementing leaf 4 of cpuid

2017-12-13 Thread Jason Lowe-Power
Hi Sam, The way *I* would do this (though it may not be the best way) is to do what you suggest, precompute the cpuid value in python and set that as a parameter on the System object (maybe the CPU? Can different cores return different cpuid values?). You should be able to access all of this

[gem5-dev] Implementing leaf 4 of cpuid

2017-12-12 Thread Sam Xi
Hi, I am trying to implement another part of the cpuid instruction, namely leaf 4, which returns deterministic cache parameters of the system (size, associativity, etc). However, I'm a bit stumped as to how I can actually access this information. There doesn't seem to be any way to get a pointer