> 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:06:48  up 2 days 13:01,  2 users,  load average: 0.74, 0.57, 0.51
This commit is contained in:
tracer-ysyx 2024-01-16 00:06:48 +08:00 committed by xinyangli
parent 2318d48525
commit dcecd62533
2 changed files with 1 additions and 2 deletions

View file

@ -10,7 +10,7 @@
0[xX][0-9a-fA-F]+ { yylval = strtoul(yytext, NULL, 16); return HEX_NUMBER; }
[0-9]+ { yylval = strtoul(yytext, NULL, 10); return NUMBER; }
${1,2}[a-zA-Z]{2,3} {
$[asgprt$][0-9pa][0-9]? {
yylval = isa_reg_str2val(yytext + 1, &success);
if(!success) {
yyerror(NULL, "Failed to convert reg to value");

View file

@ -175,7 +175,6 @@ START_TEST(test_expr_plain_register) {
for (i = 1; i < 32; i++) {
ck_assert(strcpy(buf + 1, regs[i]));
gpr(i) = i;
printf("%d: %s\n", i, buf);
yy_scan_string(buf);
result = yyparse(&value);
ck_assert_msg(result == 0, "expr = %s\n", buf);