mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-04 18:56:10 +00:00
72-jump Add some codegen infrastructure to make it easier to generate local jumps. If you want to generate a local backwards jump, use VG_(init_target)(&tgt) to initialize the target descriptor, then VG_(emit_target_back)(&tgt) just before emitting the target instruction. Then, when emitting the delta for the jump, call VG_(emit_delta)(&tgt). Forward jumps are analogous, except that you call VG_(emit_delta)() then VG_(emit_target_forward)(). The new emit function, VG_(emit_jcondshort_target)() takes a target pointer rather than a delta. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1364