diff --git a/nemu/src/isa/riscv32/inst.c b/nemu/src/isa/riscv32/inst.c index 33ad44e..4065268 100644 --- a/nemu/src/isa/riscv32/inst.c +++ b/nemu/src/isa/riscv32/inst.c @@ -54,6 +54,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: %x %d\n", offset, offset); + puts(s->logbuf); s->dnpc = s->pc + offset; } }