equal
deleted
inserted
replaced
572 |
572 |
573 |
573 |
574 //------------------------------------------------------------------- |
574 //------------------------------------------------------------------- |
575 |
575 |
576 |
576 |
577 void NativeMovRegMem::copy_instruction_to(address new_instruction_address) { |
|
578 Untested("copy_instruction_to"); |
|
579 int instruction_size = next_instruction_address() - instruction_address(); |
|
580 for (int i = 0; i < instruction_size; i += BytesPerInstWord) { |
|
581 *(int*)(new_instruction_address + i) = *(int*)(address(this) + i); |
|
582 } |
|
583 } |
|
584 |
|
585 |
|
586 void NativeMovRegMem::verify() { |
577 void NativeMovRegMem::verify() { |
587 NativeInstruction::verify(); |
578 NativeInstruction::verify(); |
588 // make sure code pattern is actually a "ld" or "st" of some sort. |
579 // make sure code pattern is actually a "ld" or "st" of some sort. |
589 int i0 = long_at(0); |
580 int i0 = long_at(0); |
590 int op3 = inv_op3(i0); |
581 int op3 = inv_op3(i0); |