equal
deleted
inserted
replaced
628 nlt = 5, |
628 nlt = 5, |
629 nle = 6, |
629 nle = 6, |
630 _true = 7 |
630 _true = 7 |
631 }; |
631 }; |
632 |
632 |
|
633 //---< calculate length of instruction >--- |
|
634 // As instruction size can't be found out easily on x86/x64, |
|
635 // we just use '4' for len and maxlen. |
|
636 // instruction must start at passed address |
|
637 static unsigned int instr_len(unsigned char *instr) { return 4; } |
|
638 |
|
639 //---< longest instructions >--- |
|
640 // Max instruction length is not specified in architecture documentation. |
|
641 // We could use a "safe enough" estimate (15), but just default to |
|
642 // instruction length guess from above. |
|
643 static unsigned int instr_maxlen() { return 4; } |
633 |
644 |
634 // NOTE: The general philopsophy of the declarations here is that 64bit versions |
645 // NOTE: The general philopsophy of the declarations here is that 64bit versions |
635 // of instructions are freely declared without the need for wrapping them an ifdef. |
646 // of instructions are freely declared without the need for wrapping them an ifdef. |
636 // (Some dangerous instructions are ifdef's out of inappropriate jvm's.) |
647 // (Some dangerous instructions are ifdef's out of inappropriate jvm's.) |
637 // In the .cpp file the implementations are wrapped so that they are dropped out |
648 // In the .cpp file the implementations are wrapped so that they are dropped out |