Skip to main content

dr_restore_arith_flags_from_reg

Function dr_restore_arith_flags_from_reg 

Source
pub unsafe extern "C" fn dr_restore_arith_flags_from_reg(
    drcontext: *mut c_void,
    ilist: *mut instrlist_t,
    where_: *mut instr_t,
    reg: reg_id_t,
)
Expand description

Inserts into \p ilist prior to \p where meta-instruction(s) to restore the arithmetic flags (6 arithmetic flags on X86 or APSR on ARM) from \p reg. The caller must ensure that \p reg contains the program status flags, most likely from dr_save_arith_flags_to_reg().

\note On X86, only DR_REG_XAX should be passed in.