Skip to content

Commit a9e0cd5

Browse files
Wack0dingusdev
authored andcommitted
debugger: Include SRR0 and SRR1 in regs output.
1 parent cf0881b commit a9e0cd5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

debugger/debugger.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,10 +365,10 @@ static void print_gprs() {
365365
}
366366
}
367367

368-
array<string,6> sprs = {"pc", "lr", "cr", "ctr", "xer", "msr"};
368+
array<string, 8> sprs = {"pc", "lr", "cr", "ctr", "xer", "msr", "srr0", "srr1"};
369369

370370
for (auto &spr : sprs) {
371-
cout << right << std::setw(3) << setfill(' ') << spr << " : " <<
371+
cout << right << std::setw(4) << setfill(' ') << spr << " : " <<
372372
setw(8) << setfill('0') << uppercase << hex << get_reg(spr) << setfill(' ');
373373

374374
if (i & 1) {

0 commit comments

Comments
 (0)