提交 b4b1104a 编写于 作者: Y Yinan Xu

print regs: names are 3-character aligned

上级 b932aa69
......@@ -14,7 +14,7 @@ const char *regsl[] = {
void isa_reg_display() {
int i;
for (i = 0; i < 32; i ++) {
printf("%s: " FMT_WORD " ", regsl[i], cpu.gpr[i]._64);
printf("%3s: " FMT_WORD " ", regsl[i], cpu.gpr[i]._64);
if (i % 4 == 3) printf("\n");
}
printf("pc: " FMT_WORD " mstatus: " FMT_WORD " mcause: " FMT_WORD " mepc: " FMT_WORD "\n",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册