Skip to content

Commit

Permalink
A few more typos in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
olegos2 committed Dec 28, 2024
1 parent 969a993 commit 6633225
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ option(ANDROID "Set to ON if targeting an Android device" ${ANDROID})
option(TERMUX "Set to ON if targeting an Android device with Termux" ${TERMUX})
option(USE_CCACHE "Set to ON to use ccache if present in the system" ${USE_CCACHE})
option(HAVE_TRACE "Set to ON to have Trace ability (needs ZydisInfo library)" ${HAVE_TRACE})
option(SAVE_MEM "Set to ON to build dynarec with some slower memory saving optimisations" ${SAVE_MEM})
option(SAVE_MEM "Set to ON to build dynarec with some slower memory saving optimizations" ${SAVE_MEM})
option(NOLOADADDR "Set to ON to avoid fixing the load address of Box64" OFF)
option(NOGIT "Set to ON if not building from a git clone repo (like when building from a zip download from github)" ${NOGIT})
option(BAD_SIGNAL "Set to ON to activate the workaround for incoherent si_info on SIGSEGV" ${BAD_SIGNAL})
Expand Down
2 changes: 1 addition & 1 deletion src/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ void computeRDTSC()
uint64_t freq = ReadTSCFrequency(NULL);
if(freq<((box64_rdtsc_1ghz)?1000000000LL:1000000)) {
box64_rdtsc = 1;
if(hardware) printf_log(LOG_INFO, "Hardware counter to slow (%d kHz), not using it\n", freq/1000);
if(hardware) printf_log(LOG_INFO, "Hardware counter is too slow (%d kHz), not using it\n", freq/1000);
hardware = 0;
freq = ReadTSCFrequency(NULL);
}
Expand Down
4 changes: 2 additions & 2 deletions src/dynarec/arm64/dynarec_arm64_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -2217,7 +2217,7 @@ static void fpuCacheTransform(dynarec_arm_t* dyn, int ninst, int s1, int s2, int
neoncache_t cache = dyn->n;
int s1_val = 0;
int s2_val = 0;
// unload every uneeded cache
// unload every unneeded cache
// ymm0 first
int s3_top = 1;
uint16_t to_purge = dyn->ymm_zero&~dyn->insts[i2].ymm0_in;
Expand All @@ -2233,7 +2233,7 @@ static void fpuCacheTransform(dynarec_arm_t* dyn, int ninst, int s1, int s2, int
}
}
s3_top = 0xffff;
// check SSE first, than MMX, in order, to optimise successive memory write
// check SSE first, than MMX, in order, to optimize successive memory write
for(int i=0; i<16; ++i) {
int j=findCacheSlot(dyn, ninst, NEON_CACHE_XMMW, i, &cache);
if(j>=0 && findCacheSlot(dyn, ninst, NEON_CACHE_XMMW, i, &cache_i2)==-1)
Expand Down
2 changes: 1 addition & 1 deletion src/dynarec/dynarec_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ typedef struct instruction_x64_s {
int jmp_insts; // instuction to jump to (-1 if out of the block)
uint8_t jmp_cond:1; // 1 of conditionnal jump
uint8_t has_next:1; // does this opcode can continue to the next?
uint8_t has_callret:1; // this instruction have an optimised call setup
uint8_t has_callret:1; // this instruction have an optimized call setup
uint8_t alive:1; // this opcode gets executed (0 if dead code in that block)
uint8_t barrier; // next instruction is a jump point, so no optim allowed
uint8_t state_flags;// One of SF_XXX state
Expand Down
4 changes: 2 additions & 2 deletions src/dynarec/la64/dynarec_la64_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -1256,8 +1256,8 @@ static void fpuCacheTransform(dynarec_la64_t* dyn, int ninst, int s1, int s2, in
lsxcache_t cache = dyn->lsx;
int s1_val = 0;
int s2_val = 0;
// unload every uneeded cache
// check SSE first, than MMX, in order, for optimisation issue
// unload every unneeded cache
// check SSE first, than MMX, in order, for optimization issue
for (int i = 0; i < 16; ++i) {
int j = findCacheSlot(dyn, ninst, LSX_CACHE_XMMW, i, &cache);
if (j >= 0 && findCacheSlot(dyn, ninst, LSX_CACHE_XMMW, i, &cache_i2) == -1)
Expand Down
2 changes: 1 addition & 1 deletion src/dynarec/rv64/dynarec_rv64_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -2620,7 +2620,7 @@ static void fpuCacheTransform(dynarec_rv64_t* dyn, int ninst, int s1, int s2, in
int s1_val = 0;
int s2_val = 0;
// unload every unneeded cache
// check SSE first, than MMX, in order, for optimisation issue
// check SSE first, than MMX, in order, for optimization issue
for (int i = 0; i < 16; ++i) {
int j = findCacheSlot(dyn, ninst, EXT_CACHE_SS, i, &cache);
if (j >= 0 && findCacheSlot(dyn, ninst, EXT_CACHE_SS, i, &cache_i2) == -1)
Expand Down
2 changes: 1 addition & 1 deletion src/wrapped32/wrappedlibc.c
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,7 @@ EXPORT int my32___vsprintf_chk(x64emu_t* emu, void* buff, int flags, size_t len,
return r;
}

EXPORT int my32_vfscanf(x64emu_t* emu, void* stream, void* fmt, void* b) // probably uneeded to do a GOM, a simple wrap should enough
EXPORT int my32_vfscanf(x64emu_t* emu, void* stream, void* fmt, void* b) // probably unnecessary to do a GOM, a simple wrap should be enough
{
int n = myStackAlignScanf32((const char*)fmt, (uint32_t*)b, emu->scratch, N_SCRATCH);
PREPARE_VALIST_32;
Expand Down

0 comments on commit 6633225

Please sign in to comment.