Hexadecimal register numbers are confusing.

This commit is contained in:
cdkersey 2013-11-11 14:57:27 -05:00
parent a95bb3b097
commit 1574f3a60d
2 changed files with 3 additions and 1 deletions

View file

@ -117,7 +117,7 @@ void Core::step() {
if (USE_DEBUG >= 3) {
D(3, "Register state:");
for (unsigned i = 0; i < reg[0].size(); ++i) {
D_RAW(" %r" << i << ':');
D_RAW(dec << " %r" << i << ':');
for (unsigned j = 0; j < reg.size(); ++j)
D_RAW(' ' << hex << reg[j][i] << ' ');
D_RAW('(' << shadowReg[i] << ')' << endl);

View file

@ -84,6 +84,8 @@ Instruction::InstTableEntry Instruction::instTable[] = {
};
ostream &Harp::operator<<(ostream& os, Instruction &inst) {
os << dec;
if (inst.predicated) {
os << "@p" << inst.pred << " ? ";
}