Makefile.mingw corrections and made the code pass much stricter checks (now mandated by Makefile.mignw) to ensure GCC 14 readiness.
This commit is contained in:
@@ -120,7 +120,7 @@ uint32_t mem_check_write;
|
||||
uint32_t mem_check_write_w;
|
||||
uint32_t mem_check_write_l;
|
||||
|
||||
static uint32_t gen_MEM_LOAD_ADDR_EA_B()
|
||||
static uint32_t gen_MEM_LOAD_ADDR_EA_B(void)
|
||||
{
|
||||
uint32_t addr = (uint32_t)&codeblock[block_current].data[block_pos];
|
||||
|
||||
@@ -171,7 +171,7 @@ static uint32_t gen_MEM_LOAD_ADDR_EA_B()
|
||||
return addr;
|
||||
}
|
||||
|
||||
static uint32_t gen_MEM_LOAD_ADDR_EA_W()
|
||||
static uint32_t gen_MEM_LOAD_ADDR_EA_W(void)
|
||||
{
|
||||
uint32_t addr = (uint32_t)&codeblock[block_current].data[block_pos];
|
||||
|
||||
@@ -227,7 +227,7 @@ static uint32_t gen_MEM_LOAD_ADDR_EA_W()
|
||||
return addr;
|
||||
}
|
||||
|
||||
static uint32_t gen_MEM_LOAD_ADDR_EA_L()
|
||||
static uint32_t gen_MEM_LOAD_ADDR_EA_L(void)
|
||||
{
|
||||
uint32_t addr = (uint32_t)&codeblock[block_current].data[block_pos];
|
||||
|
||||
@@ -279,7 +279,7 @@ static uint32_t gen_MEM_LOAD_ADDR_EA_L()
|
||||
return addr;
|
||||
}
|
||||
|
||||
static uint32_t gen_MEM_LOAD_ADDR_EA_Q()
|
||||
static uint32_t gen_MEM_LOAD_ADDR_EA_Q(void)
|
||||
{
|
||||
uint32_t addr = (uint32_t)&codeblock[block_current].data[block_pos];
|
||||
|
||||
@@ -335,7 +335,7 @@ static uint32_t gen_MEM_LOAD_ADDR_EA_Q()
|
||||
return addr;
|
||||
}
|
||||
|
||||
static uint32_t gen_MEM_STORE_ADDR_EA_B()
|
||||
static uint32_t gen_MEM_STORE_ADDR_EA_B(void)
|
||||
{
|
||||
uint32_t addr = (uint32_t)&codeblock[block_current].data[block_pos];
|
||||
|
||||
@@ -384,7 +384,7 @@ static uint32_t gen_MEM_STORE_ADDR_EA_B()
|
||||
return addr;
|
||||
}
|
||||
|
||||
static uint32_t gen_MEM_STORE_ADDR_EA_W()
|
||||
static uint32_t gen_MEM_STORE_ADDR_EA_W(void)
|
||||
{
|
||||
uint32_t addr = (uint32_t)&codeblock[block_current].data[block_pos];
|
||||
|
||||
@@ -439,7 +439,7 @@ static uint32_t gen_MEM_STORE_ADDR_EA_W()
|
||||
return addr;
|
||||
}
|
||||
|
||||
static uint32_t gen_MEM_STORE_ADDR_EA_L()
|
||||
static uint32_t gen_MEM_STORE_ADDR_EA_L(void)
|
||||
{
|
||||
uint32_t addr = (uint32_t)&codeblock[block_current].data[block_pos];
|
||||
|
||||
@@ -493,7 +493,7 @@ static uint32_t gen_MEM_STORE_ADDR_EA_L()
|
||||
return addr;
|
||||
}
|
||||
|
||||
static uint32_t gen_MEM_STORE_ADDR_EA_Q()
|
||||
static uint32_t gen_MEM_STORE_ADDR_EA_Q(void)
|
||||
{
|
||||
uint32_t addr = (uint32_t)&codeblock[block_current].data[block_pos];
|
||||
|
||||
@@ -555,7 +555,7 @@ static uint32_t gen_MEM_STORE_ADDR_EA_Q()
|
||||
#ifndef RELEASE_BUILD
|
||||
static char gen_MEM_LOAD_ADDR_EA_B_NO_ABRT_err[] = "gen_MEM_LOAD_ADDR_EA_B_NO_ABRT aborted\n";
|
||||
#endif
|
||||
static uint32_t gen_MEM_LOAD_ADDR_EA_B_NO_ABRT()
|
||||
static uint32_t gen_MEM_LOAD_ADDR_EA_B_NO_ABRT(void)
|
||||
{
|
||||
uint32_t addr = (uint32_t)&codeblock[block_current].data[block_pos];
|
||||
|
||||
@@ -620,7 +620,7 @@ static uint32_t gen_MEM_LOAD_ADDR_EA_B_NO_ABRT()
|
||||
#ifndef RELEASE_BUILD
|
||||
static char gen_MEM_LOAD_ADDR_EA_W_NO_ABRT_err[] = "gen_MEM_LOAD_ADDR_EA_W_NO_ABRT aborted\n";
|
||||
#endif
|
||||
static uint32_t gen_MEM_LOAD_ADDR_EA_W_NO_ABRT()
|
||||
static uint32_t gen_MEM_LOAD_ADDR_EA_W_NO_ABRT(void)
|
||||
{
|
||||
uint32_t addr = (uint32_t)&codeblock[block_current].data[block_pos];
|
||||
|
||||
@@ -690,7 +690,7 @@ static uint32_t gen_MEM_LOAD_ADDR_EA_W_NO_ABRT()
|
||||
#ifndef RELEASE_BUILD
|
||||
static char gen_MEM_LOAD_ADDR_EA_L_NO_ABRT_err[] = "gen_MEM_LOAD_ADDR_EA_L_NO_ABRT aborted\n";
|
||||
#endif
|
||||
static uint32_t gen_MEM_LOAD_ADDR_EA_L_NO_ABRT()
|
||||
static uint32_t gen_MEM_LOAD_ADDR_EA_L_NO_ABRT(void)
|
||||
{
|
||||
uint32_t addr = (uint32_t)&codeblock[block_current].data[block_pos];
|
||||
|
||||
@@ -759,7 +759,7 @@ static uint32_t gen_MEM_LOAD_ADDR_EA_L_NO_ABRT()
|
||||
#ifndef RELEASE_BUILD
|
||||
static char gen_MEM_STORE_ADDR_EA_B_NO_ABRT_err[] = "gen_MEM_STORE_ADDR_EA_B_NO_ABRT aborted\n";
|
||||
#endif
|
||||
static uint32_t gen_MEM_STORE_ADDR_EA_B_NO_ABRT()
|
||||
static uint32_t gen_MEM_STORE_ADDR_EA_B_NO_ABRT(void)
|
||||
{
|
||||
uint32_t addr = (uint32_t)&codeblock[block_current].data[block_pos];
|
||||
|
||||
@@ -820,7 +820,7 @@ static uint32_t gen_MEM_STORE_ADDR_EA_B_NO_ABRT()
|
||||
#ifndef RELEASE_BUILD
|
||||
static char gen_MEM_STORE_ADDR_EA_W_NO_ABRT_err[] = "gen_MEM_STORE_ADDR_EA_W_NO_ABRT aborted\n";
|
||||
#endif
|
||||
static uint32_t gen_MEM_STORE_ADDR_EA_W_NO_ABRT()
|
||||
static uint32_t gen_MEM_STORE_ADDR_EA_W_NO_ABRT(void)
|
||||
{
|
||||
uint32_t addr = (uint32_t)&codeblock[block_current].data[block_pos];
|
||||
|
||||
@@ -887,7 +887,7 @@ static uint32_t gen_MEM_STORE_ADDR_EA_W_NO_ABRT()
|
||||
#ifndef RELEASE_BUILD
|
||||
static char gen_MEM_STORE_ADDR_EA_L_NO_ABRT_err[] = "gen_MEM_STORE_ADDR_EA_L_NO_ABRT aborted\n";
|
||||
#endif
|
||||
static uint32_t gen_MEM_STORE_ADDR_EA_L_NO_ABRT()
|
||||
static uint32_t gen_MEM_STORE_ADDR_EA_L_NO_ABRT(void)
|
||||
{
|
||||
uint32_t addr = (uint32_t)&codeblock[block_current].data[block_pos];
|
||||
|
||||
@@ -950,7 +950,7 @@ static uint32_t gen_MEM_STORE_ADDR_EA_L_NO_ABRT()
|
||||
return addr;
|
||||
}
|
||||
|
||||
static uint32_t gen_MEM_CHECK_WRITE()
|
||||
static uint32_t gen_MEM_CHECK_WRITE(void)
|
||||
{
|
||||
uint32_t addr = (uint32_t)&codeblock[block_current].data[block_pos];
|
||||
|
||||
@@ -1007,7 +1007,7 @@ static uint32_t gen_MEM_CHECK_WRITE()
|
||||
return addr;
|
||||
}
|
||||
|
||||
static uint32_t gen_MEM_CHECK_WRITE_W()
|
||||
static uint32_t gen_MEM_CHECK_WRITE_W(void)
|
||||
{
|
||||
uint32_t addr = (uint32_t)&codeblock[block_current].data[block_pos];
|
||||
|
||||
@@ -1089,7 +1089,7 @@ static uint32_t gen_MEM_CHECK_WRITE_W()
|
||||
return addr;
|
||||
}
|
||||
|
||||
static uint32_t gen_MEM_CHECK_WRITE_L()
|
||||
static uint32_t gen_MEM_CHECK_WRITE_L(void)
|
||||
{
|
||||
uint32_t addr = (uint32_t)&codeblock[block_current].data[block_pos];
|
||||
|
||||
@@ -1171,7 +1171,7 @@ static uint32_t gen_MEM_CHECK_WRITE_L()
|
||||
return addr;
|
||||
}
|
||||
|
||||
void codegen_init()
|
||||
void codegen_init(void)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
codeblock = VirtualAlloc(NULL, (BLOCK_SIZE+1) * sizeof(codeblock_t), MEM_COMMIT, PAGE_EXECUTE_READWRITE);
|
||||
@@ -1244,14 +1244,14 @@ void codegen_init()
|
||||
#endif
|
||||
}
|
||||
|
||||
void codegen_reset()
|
||||
void codegen_reset(void)
|
||||
{
|
||||
memset(codeblock, 0, BLOCK_SIZE * sizeof(codeblock_t));
|
||||
memset(codeblock_hash, 0, HASH_SIZE * sizeof(codeblock_t *));
|
||||
mem_reset_page_blocks();
|
||||
}
|
||||
|
||||
void dump_block()
|
||||
void dump_block(void)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -1512,7 +1512,7 @@ void codegen_block_start_recompile(codeblock_t *block)
|
||||
codegen_accumulate_reset();
|
||||
}
|
||||
|
||||
void codegen_block_remove()
|
||||
void codegen_block_remove(void)
|
||||
{
|
||||
codeblock_t *block = &codeblock[block_current];
|
||||
|
||||
@@ -1521,7 +1521,7 @@ void codegen_block_remove()
|
||||
recomp_page = -1;
|
||||
}
|
||||
|
||||
void codegen_block_generate_end_mask()
|
||||
void codegen_block_generate_end_mask(void)
|
||||
{
|
||||
codeblock_t *block = &codeblock[block_current];
|
||||
uint32_t start_pc;
|
||||
@@ -1581,7 +1581,7 @@ void codegen_block_generate_end_mask()
|
||||
recomp_page = -1;
|
||||
}
|
||||
|
||||
void codegen_block_end()
|
||||
void codegen_block_end(void)
|
||||
{
|
||||
codeblock_t *block = &codeblock[block_current];
|
||||
|
||||
@@ -1618,7 +1618,7 @@ void codegen_block_end_recompile(codeblock_t *block)
|
||||
block->flags &= ~CODEBLOCK_STATIC_TOP;
|
||||
}
|
||||
|
||||
void codegen_flush()
|
||||
void codegen_flush(void)
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -1668,7 +1668,7 @@ int opcode_0f_modrm[256] =
|
||||
0, 1, 1, 1, 0, 1, 0, 0, 1, 1, 1, 0, 1, 1, 1, 0 /*f0*/
|
||||
};
|
||||
|
||||
void codegen_debug()
|
||||
void codegen_debug(void)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user