diff --git a/nemu/src/isa/riscv32/inst.c b/nemu/src/isa/riscv32/inst.c index c26c797..e351270 100644 --- a/nemu/src/isa/riscv32/inst.c +++ b/nemu/src/isa/riscv32/inst.c @@ -53,6 +53,7 @@ static void decode_operand(Decode *s, int *rd, word_t *src1, word_t *src2, word_ static void do_branch(Decode *s, bool condition, word_t offset) { if (condition) { + printf("offset: %d", offset); s->dnpc = s->pc + offset; } }