x86: fix debug trace output for mwait

When running with the Exec flag, the mwait instruction attempted
to print out its source registers, which were never actually
initialized. This led to sporadic assertion failures when the
value stored there was invalid.

Committed by: Nilay Vaish <nilay@cs.wisc.edu>
This commit is contained in:
Lena Olson
2015-04-03 11:42:10 -05:00
parent aeffde5ed5
commit 333988a73e

View File

@@ -112,9 +112,9 @@ output decoder {{
{
std::stringstream response;
// Although mwait could take hints from eax and ecx, the _srcRegIdx
// is not set, and thus should not be printed here
printMnemonic(response, mnemonic);
ccprintf(response, " ");
printReg(response, _srcRegIdx[0], machInst.opSize);
return response.str();
}
}};