> compile NEMU

ysyx_22040000 李心杨
Linux calcite 6.1.71 #1-NixOS SMP PREEMPT_DYNAMIC Fri Jan  5 14:18:41 UTC 2024 x86_64 GNU/Linux
 00:03:02  up 2 days 12:57,  2 users,  load average: 0.65, 0.62, 0.53
This commit is contained in:
tracer-ysyx 2024-01-16 00:03:02 +08:00 committed by xinyangli
parent abcdb33dbf
commit 2318d48525

View file

@ -172,7 +172,7 @@ START_TEST(test_expr_plain_register) {
uint32_t value; uint32_t value;
// NOTE: need to fix this if want to support more arch // NOTE: need to fix this if want to support more arch
buf[0] = '$'; buf[0] = '$';
for (i = 0; i < 32; i++) { for (i = 1; i < 32; i++) {
ck_assert(strcpy(buf + 1, regs[i])); ck_assert(strcpy(buf + 1, regs[i]));
gpr(i) = i; gpr(i) = i;
printf("%d: %s\n", i, buf); printf("%d: %s\n", i, buf);