Skip to content

Commit

Permalink
[RV64_DYNAREC] Fixed some typos (#2244)
Browse files Browse the repository at this point in the history
* [RV64_DYNAREC] Fixed CMPXCHG8B

* [RV64_DYNAREC] Fixed typo
  • Loading branch information
xctan authored Jan 9, 2025
1 parent 316f31a commit 207073b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -989,10 +989,10 @@ void LoadLogEnv()
}
if(box64_dynarec_test_end>box64_dynarec_test_start) {
box64_dynarec_test = 1;
printf_log(LOG_INFO, "Dynarec test in the range %p - %p\n", (void*)box64_nodynarec_start, (void*)box64_nodynarec_end);
printf_log(LOG_INFO, "Dynarec test in the range %p - %p\n", (void*)box64_dynarec_test_start, (void*)box64_dynarec_test_end);
} else {
box64_dynarec_test = 0;
printf_log(LOG_INFO, "Ignoring BOX64_NODYNAREC=%s (%p-%p)\n", p, (void*)box64_nodynarec_start, (void*)box64_nodynarec_end);
printf_log(LOG_INFO, "Ignoring BOX64_NODYNAREC=%s (%p-%p)\n", p, (void*)box64_dynarec_test_start, (void*)box64_dynarec_test_end);
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/dynarec/rv64/dynarec_rv64_f0.c
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ uintptr_t dynarec64_F0(dynarec_rv64_t* dyn, uintptr_t addr, uintptr_t ip, int ni
SMDMB();
B_NEXT_nocond;
MARK;
SLLI(xRDX, x2, 32);
SRLI(xRDX, x2, 32);
ZEXTW2(xRAX, x2);
SMDMB();
B_NEXT_nocond;
Expand All @@ -392,7 +392,7 @@ uintptr_t dynarec64_F0(dynarec_rv64_t* dyn, uintptr_t addr, uintptr_t ip, int ni
SMDMB();
B_NEXT_nocond;
MARK2;
SLLI(xRDX, x2, 32);
SRLI(xRDX, x2, 32);
ZEXTW2(xRAX, x2);
SMDMB();
break;
Expand Down

0 comments on commit 207073b

Please sign in to comment.