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

۶ مطلب در آبان ۱۳۹۲ ثبت شده است

۲۵ آبان ۹۲ ، ۱۹:۰۷

سورس کد فایلهای آلوده

یک سایت برای سورس کد فایلهای آلوده به زبان های مختلف از جمله اسمبلی


۱۲ آبان ۹۲ ، ۱۹:۰۸

PTscalar For ARM

Mona Jalal

Preparing for TOEFL iBT, GRE General and DELF B1 for the next two month, meanwhile preparing my project presentation and working on a Novel Reliable NoC Mapping algorithm and Importing more realistic power models into a PTscalar which has ARM ISA.


This Article used too.


http://www.jwhitham.org/simplescalar/

آموزش کار با وکا فارسی(وب پیج):



Weka Tutorials

For custom data mining help contact us at our gmail account william 108. There is not a space. Some basic Statistics videos are atwww.sentimentmining.net/StatisticsVideos 
Some videos on the R programming language for Statistical Computing are athttp://sentimentmining.net/StatisticsWithR/
۰۸ آبان ۹۲ ، ۱۳:۴۲

Adding instructions to the Simplscalar decode tree

The simplscalar decode tree for instructions can be at first quiet daunting.
Tracing the decode pattern is a pen and paper exercise.
e.g the range of instructions that start with 0×06 are defined as
DEFLINK(MEMREGPOST_LINK, 0×06, “memregpost_link”, 20, 0x0f)
CONNECT(MEMREGPOST_LINK)
This means shift the inst that start with 0×06 e.g 0×06000000 and examine bits 20 – 23
After the connect code we have an entry for 0×00 this means that if bits 20 -23 are 00 this will match and generate an opcode for this instruction
e.g 0×06000000
#define STR_R_IMPL \
etc etc
DEFINST(STR_R, 0×00,
etc
The challenge facing anyone is to add extra opcodes that are meaningful.
If one examines the 0×06 range of opcodes it is evident that instructions such as
0×06000100, 0×06000200 are unused.
So how do we use them in Simplescalar?
Well what we need to do is modify arm.def to examine bits 8 – 11 first, if these bits are 0 then they are the original instructions defined under memregpost. If not they are our new instructions.
A statement such as the one below takes care of examining bits 8 -11 of an inst that starts with 0×06
DEFLINK(MEMREGPOST_LINK, 0×06, “memregpost_link”, 8, 0x0f)
CONNECT(MEMREGPOST_LINK)
We now need to ensure that 0×06 instructions whose bits are 0 from pos 8 to 11 are directed to a different part of the decode tree. The deflink code below will be executed if the bits are 0 and will examine bits 20 – 23 of the 0×06 inst in the connect section.
In the example below inst 0×06000000 will be associated with a deflink to a new tree where the isnt str%c will be associated with 0×06000000. While inst 0×06000100 will be associated with the inst demo because bits 8 to 11 equate to 1
DEFLINK(MEMREGPOSTNEW_LINK, 0×00, “memregpostnew_link”, 20, 0x0f)
#define demo_IMPL \
etc
DEFINST(demo, 0×01,
“demo%c”, “%d,%n,%m”,
etc
CONNECT(MEMREGPOSTNEW_LINK)
#define STR_R_IMPL \
etc
DEFINST(STR_R, 0×00,
“str%c”, “%d,[%n],-%m!”,
etc
We also need to to add these new opcodes to your gas see http://www-unix.ecs.umass.edu/~yhan/ for more details on how to hack GAS.


http://www.irishsilicon.com/tag/simplescalar-decode-tree-add-instruction-arm-def/

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.


۰۷ آبان ۹۲ ، ۱۵:۴۰

Reassemble edited objdump disassembled file

توضحیات کاربران سایت سرریزپشته که ناامید کننده ست در این مورد