From c71b7bdb6988dd36aaeb904885bdc4e9afda6de0 Mon Sep 17 00:00:00 2001 From: tracer-ysyx Date: Wed, 6 Mar 2024 00:36:08 +0800 Subject: [PATCH] =?UTF-8?q?>=20compile=20NEMU=20ysyx=5F22040000=20?= =?UTF-8?q?=E6=9D=8E=E5=BF=83=E6=9D=A8=20Linux=20calcite=206.6.18=20#1-Nix?= =?UTF-8?q?OS=20SMP=20PREEMPT=5FDYNAMIC=20Fri=20Feb=2023=2008:25:28=20UTC?= =?UTF-8?q?=202024=20x86=5F64=20GNU/Linux=20=2000:36:08=20=20up=201=20day?= =?UTF-8?q?=20=204:04,=20=202=20users,=20=20load=20average:=200.17,=200.25?= =?UTF-8?q?,=200.20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nemu/src/isa/riscv32/inst.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nemu/src/isa/riscv32/inst.c b/nemu/src/isa/riscv32/inst.c index e351270..4758b0f 100644 --- a/nemu/src/isa/riscv32/inst.c +++ b/nemu/src/isa/riscv32/inst.c @@ -53,7 +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); + printf("offset: %u %d", offset, offset); s->dnpc = s->pc + offset; } }