|
From: Kumar R. <kum...@gm...> - 2007-03-27 05:27:16
|
Hi, I am a newbie to Valgrind, so my knowledge is limited there. But have handled similar issues in other tools. One way to handle delay slots is by unraveling the instruction, ie in the translated set, move the delay slot above the branch and insert a NOP in the delay slot. Of course in trickier platforms like PARISC (in which the delay slot will be conditionally executed, based on how the branch instruction gets evaluated) unraveling is more complex than just moving the instruction up. Not sure if MIPS has such conditional evaluation of delay slots. Hope this helps. :-) (alias) Kumar Kumar Rangarajan http://www.s7solutions.com Porting and Migration Solutions for the World. From India. -- The problem with winning the rat race is that, even if u win, u r still a rat! On 3/26/07, ghita aurelian <aur...@ya...> wrote: > Hello! > > I have a project at the university and I have to adapt libvex to work with > MIPS. My job is writing the guest part. I don't know exactly how to > translate mips branch and > jump instructions (because of their tricky "delay slot"). I want to know if > it is ok to treat both jump/branch instruction and the instruction in the > delay slot as a single big instruction (and raport in DisResult a single > instruction with length = 8 bytes). What if I have a jump to the instruction > in the delay slot ? > > Aur > > ________________________________ > Need Mail bonding? > Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users. > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Valgrind-developers mailing list > Val...@li... > https://lists.sourceforge.net/lists/listinfo/valgrind-developers > > |