arm: set uopSet_uop as conditional or unconditional control

uopSet_uop is microop instruction that has the IsControl flags set, but the
IsCondControl or IsUncondControl flags seems not to be set, neither in
the construction nor where the microop is used. This patch adds the the
flags in the constructor of the instruction (MicroUopSetPCCPSR).

Committed by: Nilay Vaish <nilay@cs.wisc.edu>
This commit is contained in:
Nathanael Premillieu 2012-12-12 09:50:33 -06:00
parent 84fc57bfe6
commit 3026a116ba

View file

@ -135,9 +135,12 @@ def template MicroSetPCCPSRConstructor {{
{
%(constructor)s;
if (!(condCode == COND_AL || condCode == COND_UC)) {
flags[IsCondControl] = true;
for (int x = 0; x < _numDestRegs; x++) {
_srcRegIdx[_numSrcRegs++] = _destRegIdx[x];
}
} else {
flags[IsUncondControl] = true;
}
}
}};