Hello folks. We're planning to add checkpointing instructions to some of
the software we're running on gem5 and want to be able to run the same
software on real hardware. On x86 it's fairly easy to detect because the
CPUID instruction returns strings which fairly clearly say that your
running on gem5. On ARM, the CPUID registers seem to have more realistic
values which don't indicate gem5. I see that the MIDR register has an
"implementer" field which currently defaults to 0x41, meaning ARM. Would
there be adverse affects from changing that to something else which means
"gem5"? For instance, would the kernel do something differently because it
doesn't think it's on the same type of CPU?

Is there some other recommended method of detecting in software whether
you're running under gem5 or not?

Gabe
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to