提交 056e5276 编写于 作者: Z Zihao Yu

cpu,inv: rename logo -> isa_logo

上级 02fea2f3
#include "common.h"
void display_inv_msg(vaddr_t pc) {
extern char logo [];
extern char isa_logo[];
printf("There are two cases which will trigger this unexpected exception:\n"
"1. The instruction at PC = 0x%08x is not implemented.\n"
"2. Something is implemented incorrectly.\n", pc);
printf("Find this PC(0x%08x) in the disassembling result to distinguish which case it is.\n\n", pc);
printf("\33[1;31mIf it is the first case, see\n%s\nfor more details.\n\nIf it is the second case, remember:\n"
"* The machine is always right!\n"
"* Every line of untested code is always wrong!\33[0m\n\n", logo);
"* Every line of untested code is always wrong!\33[0m\n\n", isa_logo);
}
......@@ -12,7 +12,7 @@
*/
unsigned char logo[] = {
unsigned char isa_logo[] = {
0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
0x5f, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
0x5f, 0x5f, 0x5f, 0x5f, 0x20, 0x5f, 0x5f, 0x5f, 0x20, 0x20, 0x20, 0x20,
......
......@@ -10,7 +10,7 @@
*/
unsigned char logo[] = {
unsigned char isa_logo[] = {
0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x5f, 0x20, 0x20, 0x20, 0x20,
0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x5f, 0x5f, 0x20,
......
......@@ -10,7 +10,7 @@
*/
unsigned char logo[] = {
unsigned char isa_logo[] = {
0x20, 0x5f, 0x20, 0x5f, 0x5f, 0x5f, 0x5f, 0x20, 0x20, 0x20, 0x5f, 0x5f,
0x5f, 0x20, 0x20, 0x20, 0x20, 0x5f, 0x5f, 0x20, 0x20, 0x20, 0x20, 0x5f,
0x5f, 0x20, 0x20, 0x5f, 0x5f, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册