<div dir="ltr"><div><div><div><div><div><div>Hi,<br><br></div>I am working on a project that requires me to suggest to the hardware simulator (gem5) switch cores from one to another at the start of certain basic blocks. Could someone advice me if I should go with introducing a new Intrinsic instruction for this purpose. I will be following <a href="http://llvm.org/docs/ExtendingLLVM.html" target="_blank">http://llvm.org/docs/ExtendingLLVM.html</a> for this. Gem5 has certain reserved op-codes which I can use. <br>


<br></div>I was thinking of adding the new instruction to Other Ops type but haven't quite figured out the whole procedure yet. The instruction requires to have one intty argument (that can take values from 0-2) specifying the core type.<br>


</div>Any help or suggestions would be appreciated. <br><br></div>Regards,<br></div>Silky Arora<br></div><div>Graduate Student Research Assistant<br></div>University of Michigan<br></div>