More warning and compile fixes.
This commit is contained in:
@@ -325,7 +325,7 @@ codegen_backend_init(void)
|
||||
|
||||
codegen_allocator_clean_blocks(block->head_mem_block);
|
||||
|
||||
asm("mrs %0, fpcr\n"
|
||||
asm("mrs %w0, fpcr\n"
|
||||
: "=r"(cpu_state.old_fp_control));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#if defined __aarch64__ || defined _M_ARM64
|
||||
|
||||
# include <inttypes.h>
|
||||
# include <stdint.h>
|
||||
# include <86box/86box.h>
|
||||
# include "cpu.h"
|
||||
@@ -662,7 +663,7 @@ host_arm64_CMNX_IMM(codeblock_t *block, int src_n_reg, uint64_t imm_data)
|
||||
} else if (!(imm_data & 0xfffffffffffff000ull)) {
|
||||
codegen_addlong(block, OPCODE_CMNX_IMM | Rd(REG_XZR) | Rn(src_n_reg) | IMM12(imm_data & 0xfff) | DATPROC_IMM_SHIFT(0));
|
||||
} else
|
||||
fatal("CMNX_IMM %08x\n", imm_data);
|
||||
fatal("CMNX_IMM %016" PRIx64 "\n", imm_data);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
@@ -553,7 +553,7 @@ codegen_FABS(codeblock_t *block, uop_t *uop)
|
||||
if (REG_IS_D(dest_size) && REG_IS_D(src_size_a)) {
|
||||
host_arm64_FABS_D(block, dest_reg, src_reg_a);
|
||||
} else
|
||||
fatal("codegen_FABS %02x %02x %02x\n", uop->dest_reg_a_real, uop->src_reg_a_real);
|
||||
fatal("codegen_FABS %02x %02x\n", uop->dest_reg_a_real, uop->src_reg_a_real);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -566,7 +566,7 @@ codegen_FCHS(codeblock_t *block, uop_t *uop)
|
||||
if (REG_IS_D(dest_size) && REG_IS_D(src_size_a)) {
|
||||
host_arm64_FNEG_D(block, dest_reg, src_reg_a);
|
||||
} else
|
||||
fatal("codegen_FCHS %02x %02x %02x\n", uop->dest_reg_a_real, uop->src_reg_a_real);
|
||||
fatal("codegen_FCHS %02x %02x\n", uop->dest_reg_a_real, uop->src_reg_a_real);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -579,7 +579,7 @@ codegen_FSQRT(codeblock_t *block, uop_t *uop)
|
||||
if (REG_IS_D(dest_size) && REG_IS_D(src_size_a)) {
|
||||
host_arm64_FSQRT_D(block, dest_reg, src_reg_a);
|
||||
} else
|
||||
fatal("codegen_FSQRT %02x %02x %02x\n", uop->dest_reg_a_real, uop->src_reg_a_real);
|
||||
fatal("codegen_FSQRT %02x %02x\n", uop->dest_reg_a_real, uop->src_reg_a_real);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -1548,7 +1548,7 @@ codegen_PF2ID(codeblock_t *block, uop_t *uop)
|
||||
if (REG_IS_Q(dest_size) && REG_IS_Q(src_size_a)) {
|
||||
host_arm64_FCVTZS_V2S(block, dest_reg, src_reg_a);
|
||||
} else
|
||||
fatal("PF2ID %02x %02x\n", uop->dest_reg_a_real);
|
||||
fatal("PF2ID %02x\n", uop->dest_reg_a_real);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -1655,7 +1655,7 @@ codegen_PFRCP(codeblock_t *block, uop_t *uop)
|
||||
host_arm64_FDIV_S(block, dest_reg, REG_V_TEMP, src_reg_a);
|
||||
host_arm64_DUP_V2S(block, dest_reg, dest_reg, 0);
|
||||
} else
|
||||
fatal("PFRCP %02x %02x\n", uop->dest_reg_a_real);
|
||||
fatal("PFRCP %02x\n", uop->dest_reg_a_real);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -1672,7 +1672,7 @@ codegen_PFRSQRT(codeblock_t *block, uop_t *uop)
|
||||
host_arm64_FDIV_S(block, dest_reg, dest_reg, REG_V_TEMP);
|
||||
host_arm64_DUP_V2S(block, dest_reg, dest_reg, 0);
|
||||
} else
|
||||
fatal("PFRSQRT %02x %02x\n", uop->dest_reg_a_real);
|
||||
fatal("PFRSQRT %02x\n", uop->dest_reg_a_real);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -1698,7 +1698,7 @@ codegen_PI2FD(codeblock_t *block, uop_t *uop)
|
||||
if (REG_IS_Q(dest_size) && REG_IS_Q(src_size_a)) {
|
||||
host_arm64_SCVTF_V2S(block, dest_reg, src_reg_a);
|
||||
} else
|
||||
fatal("PI2FD %02x %02x\n", uop->dest_reg_a_real);
|
||||
fatal("PI2FD %02x\n", uop->dest_reg_a_real);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include <inttypes.h>
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@@ -305,7 +306,7 @@ add_to_block_list(codeblock_t *block)
|
||||
|
||||
#ifndef RELEASE_BUILD
|
||||
if (!block->page_mask)
|
||||
fatal("add_to_block_list - mask = 0 %llx %llx\n", block->page_mask, block->page_mask2);
|
||||
fatal("add_to_block_list - mask = 0 %" PRIx64 " %" PRIx64 "\n", block->page_mask, block->page_mask2);
|
||||
#endif
|
||||
|
||||
if (block_prev_nr) {
|
||||
|
||||
Reference in New Issue
Block a user