Review Board 2.0.15


x86: Add helper functions to access rflags

Review Request #1907 - Created June 10, 2013 and submitted - Latest diff uploaded

Information
Andreas Sandberg
gem5
default
Reviewers
Default
Changeset 9756:1e7295a2729a
---------------------------
x86: Add helper functions to access rflags

The rflags register is spread across several different registers. Most
of the flags are stored in MISCREG_RFLAGS, but some are stored in
microcode registers. When accessing RFLAGS, we need to reconstruct it
from these registers. This changeset adds two functions,
X86ISA::getRFlags() and X86ISA::setRFlags(), that take care of this
magic.
Compiles. Both helper functions are used by the x86 KVM CPU and have been used successfully in CPU switching experiments. There are currently no other users of these helper functions.