Hi Christian,

The CCregs are Condition Code registers. In order to make it easier to track dependencies in the pipeline models, the flags register is broken into three different condition code registers (two CC regs are reserved for microcode).

There are a couple of helper functions in src/arch/x86/utility.cc that assist in recreating/modifying RFLAGS (getRFlags/setRFlags). You should be able to use them if you need the real rflags value.

//Andreas

On 2014-04-08 17:20, Christian Menard wrote:
Hi,

could someone please explain what the CCregs are and what they are needed for?
Why does the CLD (clear direction flag) instruction in x86 modify the CCregs
instead of RFLAGS? I am experimenting with soft error detection and redundancy
and run into a problem when the CLD instruction writes different values in
redundant threads.

Thanks
Christian
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to