بیــــــــوقفه

For the last few days, I am looking at Simple scalar toolset for my research work. I need to add new instructions to SimpleScalar’s native Instruction Set Architecture (PISA). Adding new instruction to the simulator tool seems to be straight forward. But , adding new instructions to the GNU/Assembler for PISA seems to be little complecated. Eventhough there is adocuments on how to add new instructions to the GNU/Assembler for ARM ISA, I couldn’t find one for PISA. I have to mention that I coundn’t find an analogy between ARM Assembler and the one for PISA!

Finally, after much trouble and with the help of Alex and Steve, I have managed to add new instructions to the SImpleScalar’s native ISA – PISA. The process is not hard if you are aware how the tool-set works.

Basically, you need to modify two files.
1] ../simplescalar/simpleutil-version_number/opcode/ss-opc.c

This is the file, where you tell the assembler about the new instructions by telling the opcode, type of instruction, etc.

2] ../simplescalar/simplesim-v.num/pisa-target/pisa.def

This is where you tell the software simulator on what to do when it enconters an instruction of the new type you inserted.

Please ask me for further details.. if anyone in interested on doing this!


http://roshan.wordpress.com/2006/03/23/adding-new-instruction-to-simplescalar-pisa-toolset/



سوالات


Hi, I am wondering how to use the new instruction. Sample programs of SS are written in C. Should I can just call the new instruction as assemble code?

You are right. You need to either use inline assembly or you compile the program to assembly and then insert your code and assemble using your “new” assembler.


موافقین ۰ مخالفین ۰ ۹۲/۰۸/۰۸

نظرات  (۰)

هیچ نظری هنوز ثبت نشده است

ارسال نظر

ارسال نظر آزاد است، اما اگر قبلا در بیان ثبت نام کرده اید می توانید ابتدا وارد شوید.
شما میتوانید از این تگهای html استفاده کنید:
<b> یا <strong>، <em> یا <i>، <u>، <strike> یا <s>، <sup>، <sub>، <blockquote>، <code>، <pre>، <hr>، <br>، <p>، <a href="" title="">، <span style="">، <div align="">
تجدید کد امنیتی