> 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
 23:54:50  up 2 days 12:49,  2 users,  load average: 0.15, 0.34, 0.43
This commit is contained in:
tracer-ysyx 2024-01-15 23:54:50 +08:00 committed by xinyangli
parent 487f4d8f3e
commit e6d3d052a1

View file

@ -171,7 +171,7 @@ START_TEST(test_expr_plain_register) {
char buf[5] = {}; char buf[5] = {};
// 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;
yy_scan_string(buf); yy_scan_string(buf);