You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#include<isa.h>#include<memory/paddr.h>// this is not consistent with uint8_t// but it is ok since we do not access the array directlystaticconstuint32_timg [] = {
0x00000297, // auipc t0,00x00028823, // sb zero,16(t0)0x0102c503, // lbu a0,16(t0)0x00100073, // ebreak (used as nemu_trap)0xdeadbeef, // some data
};
staticvoidrestart() {
/* Set the initial program counter. */cpu.pc=RESET_VECTOR;
/* The zero register is always 0. */cpu.gpr[0] =0;
}
为什么在monitor.c文件当中没有包含cpu.h的文件,cpu也没有在monitor.c文件中声明是外部变量,它也可以成功编译,这是编译器的原因吗
The text was updated successfully, but these errors were encountered: