]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Fix %rip-relative addressing, which uses the address of the _next_
authorJulian Seward <jseward@acm.org>
Mon, 7 Feb 2005 15:02:25 +0000 (15:02 +0000)
committerJulian Seward <jseward@acm.org>
Mon, 7 Feb 2005 15:02:25 +0000 (15:02 +0000)
commitd4e2839ffbfbc2baa29b71233ee5ede7420bfef8
tree30efe6bca72e08ea2329ec4758c558e6d324b0f1
parent157eeeee806b764556b9eb66e11e39b86c7c7f13
Fix %rip-relative addressing, which uses the address of the _next_
instruction, not the current one.  Grrr.  This is inconvenient since
it means we sometimes need to know how long an insn is before it is
decoded, and that information is only available after is is decoded.

Currently we make guesses about insn length when a %rip-relative
address appears.  If such a guess is made, it is then checked for
correctness after the decode, so at least all errors should get picked
up.

git-svn-id: svn://svn.valgrind.org/vex/trunk@864
VEX/priv/guest-amd64/toIR.c