> compile NEMU

ysyx_22040000 李心杨
Linux calcite 6.6.18 #1-NixOS SMP PREEMPT_DYNAMIC Fri Feb 23 08:25:28 UTC 2024 x86_64 GNU/Linux
 00:36:52  up 1 day  4:05,  2 users,  load average: 0.31, 0.28, 0.21
This commit is contained in:
tracer-ysyx 2024-03-06 00:36:52 +08:00 committed by xinyangli
parent ce399c14d9
commit 14e442c0a7

View file

@ -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;
}
}