Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
0xnobody committed Sep 7, 2020
2 parents 49b37db + 6e54501 commit 31b40e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions VMPDump/instruction_utilities.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ namespace vmpdump
//
inline bool register_base_equal( x86_reg first, x86_reg second )
{
return vtil::amd64::registers.remap( first, 0, 1 ) == vtil::amd64::registers.remap( second, 0, 1 );
return vtil::amd64::registers.resolve_mapping( first ).base_register == vtil::amd64::registers.resolve_mapping( second ).base_register;
}

// Gets the register's largest architecture equivalent.
//
inline x86_reg get_largest_for_arch( x86_reg reg )
{
return vtil::amd64::registers.remap( reg, 0, 8 );
return vtil::amd64::registers.extend( reg );
}
}
}

0 comments on commit 31b40e7

Please sign in to comment.