Function x86_64::registers::rflags::write_raw

source ·
pub unsafe fn write_raw(val: u64)
Available on crate feature instructions only.
Expand description

Writes the RFLAGS register.

Does not preserve any bits, including reserved bits.

§Safety

Unsafe because undefined becavior can occur if certain flags are modified. For example, the DF flag must be unset in all Rust code. Also, modifying CF, PF, or any other flags also used by Rust/LLVM can result in undefined behavior too.