Fixed warning about {} initialisers.
This commit is contained in:
parent
837d3787c0
commit
df41c49e2d
@ -281,7 +281,7 @@
|
|||||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
<PreprocessorDefinitions>WIN32;NDEBUG;_LIB;%(PreprocessorDefinitions);_CRT_SECURE_NO_WARNINGS;inline=__inline;__func__=__FUNCTION__;__i386__;UNICORN_HAS_X86</PreprocessorDefinitions>
|
<PreprocessorDefinitions>WIN32;NDEBUG;_LIB;%(PreprocessorDefinitions);_CRT_SECURE_NO_WARNINGS;inline=__inline;__func__=__FUNCTION__;__i386__;UNICORN_HAS_X86</PreprocessorDefinitions>
|
||||||
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
<AdditionalIncludeDirectories>.;..;../../../include;../../../qemu;../../../qemu/include;../../../qemu/tcg</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>.;..;../../../include;../../../qemu;../../../qemu/include;../../../qemu/tcg</AdditionalIncludeDirectories>
|
||||||
<AdditionalOptions>/wd4018 /wd4244 /wd4267 %(AdditionalOptions)</AdditionalOptions>
|
<AdditionalOptions>/wd4018 /wd4244 /wd4267 %(AdditionalOptions)</AdditionalOptions>
|
||||||
<ExceptionHandling>false</ExceptionHandling>
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
@ -306,7 +306,7 @@
|
|||||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
<PreprocessorDefinitions>WIN32;NDEBUG;_LIB;%(PreprocessorDefinitions);_CRT_SECURE_NO_WARNINGS;inline=__inline;__func__=__FUNCTION__;__x86_64__;UNICORN_HAS_X86</PreprocessorDefinitions>
|
<PreprocessorDefinitions>WIN32;NDEBUG;_LIB;%(PreprocessorDefinitions);_CRT_SECURE_NO_WARNINGS;inline=__inline;__func__=__FUNCTION__;__x86_64__;UNICORN_HAS_X86</PreprocessorDefinitions>
|
||||||
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
<AdditionalIncludeDirectories>.;..;../../../include;../../../qemu;../../../qemu/include;../../../qemu/tcg</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>.;..;../../../include;../../../qemu;../../../qemu/include;../../../qemu/tcg</AdditionalIncludeDirectories>
|
||||||
<AdditionalOptions>/wd4018 /wd4244 /wd4267 %(AdditionalOptions)</AdditionalOptions>
|
<AdditionalOptions>/wd4018 /wd4244 /wd4267 %(AdditionalOptions)</AdditionalOptions>
|
||||||
<ExceptionHandling>false</ExceptionHandling>
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
@ -1562,8 +1562,9 @@ static void x86_cpu_get_feature_words(struct uc_struct *uc, Object *obj, Visitor
|
|||||||
uint32_t *array = (uint32_t *)opaque;
|
uint32_t *array = (uint32_t *)opaque;
|
||||||
FeatureWord w;
|
FeatureWord w;
|
||||||
Error *err = NULL;
|
Error *err = NULL;
|
||||||
X86CPUFeatureWordInfo word_infos[FEATURE_WORDS] = { 0 };
|
// These all get setup below, so no need to initialise them here.
|
||||||
X86CPUFeatureWordInfoList list_entries[FEATURE_WORDS] = { 0 };
|
X86CPUFeatureWordInfo word_infos[FEATURE_WORDS];
|
||||||
|
X86CPUFeatureWordInfoList list_entries[FEATURE_WORDS];
|
||||||
X86CPUFeatureWordInfoList *list = NULL;
|
X86CPUFeatureWordInfoList *list = NULL;
|
||||||
|
|
||||||
for (w = 0; w < FEATURE_WORDS; w++) {
|
for (w = 0; w < FEATURE_WORDS; w++) {
|
||||||
|
@ -486,7 +486,7 @@ void helper_svm_check_intercept_param(CPUX86State *env, uint32_t type,
|
|||||||
if (likely(!(env->hflags & HF_SVMI_MASK))) {
|
if (likely(!(env->hflags & HF_SVMI_MASK))) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if( type >= SVM_EXIT_READ_CR0 && type <= SVM_EXIT_READ_CR0 + 8 ) {
|
if( (int32_t)type >= SVM_EXIT_READ_CR0 && type <= SVM_EXIT_READ_CR0 + 8 ) {
|
||||||
if (env->intercept_cr_read & (1 << (type - SVM_EXIT_READ_CR0))) {
|
if (env->intercept_cr_read & (1 << (type - SVM_EXIT_READ_CR0))) {
|
||||||
helper_vmexit(env, type, param);
|
helper_vmexit(env, type, param);
|
||||||
}
|
}
|
||||||
@ -515,7 +515,7 @@ void helper_svm_check_intercept_param(CPUX86State *env, uint32_t type,
|
|||||||
uint32_t t0, t1;
|
uint32_t t0, t1;
|
||||||
|
|
||||||
uint32_t ecx = (uint32_t)env->regs[R_ECX];
|
uint32_t ecx = (uint32_t)env->regs[R_ECX];
|
||||||
if( ecx >= 0 && ecx <= 0x1fff ) {
|
if( (int32_t)ecx >= 0 && ecx <= 0x1fff ) {
|
||||||
t0 = (env->regs[R_ECX] * 2) % 8;
|
t0 = (env->regs[R_ECX] * 2) % 8;
|
||||||
t1 = (env->regs[R_ECX] * 2) / 8;
|
t1 = (env->regs[R_ECX] * 2) / 8;
|
||||||
} else if( ecx >= 0xc0000000 && ecx <= 0xc0001fff ) {
|
} else if( ecx >= 0xc0000000 && ecx <= 0xc0001fff ) {
|
||||||
|
@ -3379,37 +3379,37 @@ static const struct SSEOpHelper_epp sse_op_table6[256] = {
|
|||||||
SSSE3_OP(psignw),
|
SSSE3_OP(psignw),
|
||||||
SSSE3_OP(psignd),
|
SSSE3_OP(psignd),
|
||||||
SSSE3_OP(pmulhrsw),
|
SSSE3_OP(pmulhrsw),
|
||||||
{0},{0},{0},{0}, // filler: 0x0c - 0x0f
|
{{0},0},{{0},0},{{0},0},{{0},0}, // filler: 0x0c - 0x0f
|
||||||
SSE41_OP(pblendvb),
|
SSE41_OP(pblendvb),
|
||||||
{0},{0},{0}, // filler: 0x11 - 0x13
|
{{0},0},{{0},0},{{0},0}, // filler: 0x11 - 0x13
|
||||||
SSE41_OP(blendvps),
|
SSE41_OP(blendvps),
|
||||||
SSE41_OP(blendvpd),
|
SSE41_OP(blendvpd),
|
||||||
{0}, // filler: 0x16
|
{{0},0}, // filler: 0x16
|
||||||
SSE41_OP(ptest),
|
SSE41_OP(ptest),
|
||||||
{0},{0},{0},{0}, // filler: 0x18 - 0x1b
|
{{0},0},{{0},0},{{0},0},{{0},0}, // filler: 0x18 - 0x1b
|
||||||
SSSE3_OP(pabsb),
|
SSSE3_OP(pabsb),
|
||||||
SSSE3_OP(pabsw),
|
SSSE3_OP(pabsw),
|
||||||
SSSE3_OP(pabsd),
|
SSSE3_OP(pabsd),
|
||||||
{0}, // filler: 0x1f
|
{{0},0}, // filler: 0x1f
|
||||||
SSE41_OP(pmovsxbw),
|
SSE41_OP(pmovsxbw),
|
||||||
SSE41_OP(pmovsxbd),
|
SSE41_OP(pmovsxbd),
|
||||||
SSE41_OP(pmovsxbq),
|
SSE41_OP(pmovsxbq),
|
||||||
SSE41_OP(pmovsxwd),
|
SSE41_OP(pmovsxwd),
|
||||||
SSE41_OP(pmovsxwq),
|
SSE41_OP(pmovsxwq),
|
||||||
SSE41_OP(pmovsxdq),
|
SSE41_OP(pmovsxdq),
|
||||||
{0},{0}, // filler: 0x26 - 0x27
|
{{0},0},{{0},0}, // filler: 0x26 - 0x27
|
||||||
SSE41_OP(pmuldq),
|
SSE41_OP(pmuldq),
|
||||||
SSE41_OP(pcmpeqq),
|
SSE41_OP(pcmpeqq),
|
||||||
SSE41_SPECIAL, /* movntqda */
|
SSE41_SPECIAL, /* movntqda */
|
||||||
SSE41_OP(packusdw),
|
SSE41_OP(packusdw),
|
||||||
{0},{0},{0},{0}, // filler: 0x2c - 0x2f
|
{{0},0},{{0},0},{{0},0},{{0},0}, // filler: 0x2c - 0x2f
|
||||||
SSE41_OP(pmovzxbw),
|
SSE41_OP(pmovzxbw),
|
||||||
SSE41_OP(pmovzxbd),
|
SSE41_OP(pmovzxbd),
|
||||||
SSE41_OP(pmovzxbq),
|
SSE41_OP(pmovzxbq),
|
||||||
SSE41_OP(pmovzxwd),
|
SSE41_OP(pmovzxwd),
|
||||||
SSE41_OP(pmovzxwq),
|
SSE41_OP(pmovzxwq),
|
||||||
SSE41_OP(pmovzxdq),
|
SSE41_OP(pmovzxdq),
|
||||||
{0}, // filler: 0x36
|
{{0},0}, // filler: 0x36
|
||||||
SSE42_OP(pcmpgtq),
|
SSE42_OP(pcmpgtq),
|
||||||
SSE41_OP(pminsb),
|
SSE41_OP(pminsb),
|
||||||
SSE41_OP(pminsd),
|
SSE41_OP(pminsd),
|
||||||
@ -3422,29 +3422,29 @@ static const struct SSEOpHelper_epp sse_op_table6[256] = {
|
|||||||
SSE41_OP(pmulld),
|
SSE41_OP(pmulld),
|
||||||
SSE41_OP(phminposuw),
|
SSE41_OP(phminposuw),
|
||||||
// filler: 0x42 - 0xda
|
// filler: 0x42 - 0xda
|
||||||
{0},{0},{0},{0},{0},{0}, {0},{0},{0},{0},{0},{0},{0},{0},
|
{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0}, {{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},
|
||||||
{0},{0},{0},{0},{0},{0},{0},{0}, {0},{0},{0},{0},{0},{0},{0},{0},
|
{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0}, {{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},
|
||||||
{0},{0},{0},{0},{0},{0},{0},{0}, {0},{0},{0},{0},{0},{0},{0},{0},
|
{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0}, {{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},
|
||||||
{0},{0},{0},{0},{0},{0},{0},{0}, {0},{0},{0},{0},{0},{0},{0},{0},
|
{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0}, {{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},
|
||||||
{0},{0},{0},{0},{0},{0},{0},{0}, {0},{0},{0},{0},{0},{0},{0},{0},
|
{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0}, {{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},
|
||||||
{0},{0},{0},{0},{0},{0},{0},{0}, {0},{0},{0},{0},{0},{0},{0},{0},
|
{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0}, {{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},
|
||||||
{0},{0},{0},{0},{0},{0},{0},{0}, {0},{0},{0},{0},{0},{0},{0},{0},
|
{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0}, {{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},
|
||||||
{0},{0},{0},{0},{0},{0},{0},{0}, {0},{0},{0},{0},{0},{0},{0},{0},
|
{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0}, {{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},
|
||||||
{0},{0},{0},{0},{0},{0},{0},{0}, {0},{0},{0},{0},{0},{0},{0},{0},
|
{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0}, {{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},
|
||||||
{0},{0},{0},{0},{0},{0},{0},{0}, {0},{0},{0},
|
{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0}, {{0},0},{{0},0},{{0},0},
|
||||||
AESNI_OP(aesimc),
|
AESNI_OP(aesimc),
|
||||||
AESNI_OP(aesenc),
|
AESNI_OP(aesenc),
|
||||||
AESNI_OP(aesenclast),
|
AESNI_OP(aesenclast),
|
||||||
AESNI_OP(aesdec),
|
AESNI_OP(aesdec),
|
||||||
AESNI_OP(aesdeclast),
|
AESNI_OP(aesdeclast),
|
||||||
// filler: 0xe0 - 0xff
|
// filler: 0xe0 - 0xff
|
||||||
{0},{0},{0},{0},{0},{0},{0},{0}, {0},{0},{0},{0},{0},{0},{0},{0},
|
{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0}, {{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},
|
||||||
{0},{0},{0},{0},{0},{0},{0},{0}, {0},{0},{0},{0},{0},{0},{0},{0},
|
{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0}, {{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct SSEOpHelper_eppi sse_op_table7[256] = {
|
static const struct SSEOpHelper_eppi sse_op_table7[256] = {
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
{0},{0},{0},{0},{0},{0},{0},{0}, // filler: 0x00 - 0x07
|
{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0}, // filler: 0x00 - 0x07
|
||||||
SSE41_OP(roundps),
|
SSE41_OP(roundps),
|
||||||
SSE41_OP(roundpd),
|
SSE41_OP(roundpd),
|
||||||
SSE41_OP(roundss),
|
SSE41_OP(roundss),
|
||||||
@ -3453,43 +3453,43 @@ static const struct SSEOpHelper_eppi sse_op_table7[256] = {
|
|||||||
SSE41_OP(blendpd),
|
SSE41_OP(blendpd),
|
||||||
SSE41_OP(pblendw),
|
SSE41_OP(pblendw),
|
||||||
SSSE3_OP(palignr),
|
SSSE3_OP(palignr),
|
||||||
{0},{0},{0},{0}, // filler: 0x10 - 0x13
|
{{0},0},{{0},0},{{0},0},{{0},0}, // filler: 0x10 - 0x13
|
||||||
SSE41_SPECIAL, /* pextrb */
|
SSE41_SPECIAL, /* pextrb */
|
||||||
SSE41_SPECIAL, /* pextrw */
|
SSE41_SPECIAL, /* pextrw */
|
||||||
SSE41_SPECIAL, /* pextrd/pextrq */
|
SSE41_SPECIAL, /* pextrd/pextrq */
|
||||||
SSE41_SPECIAL, /* extractps */
|
SSE41_SPECIAL, /* extractps */
|
||||||
{0},{0},{0},{0},{0},{0},{0},{0}, // filler: 0x18 - 0x1f
|
{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0}, // filler: 0x18 - 0x1f
|
||||||
SSE41_SPECIAL, /* pinsrb */
|
SSE41_SPECIAL, /* pinsrb */
|
||||||
SSE41_SPECIAL, /* insertps */
|
SSE41_SPECIAL, /* insertps */
|
||||||
SSE41_SPECIAL, /* pinsrd/pinsrq */
|
SSE41_SPECIAL, /* pinsrd/pinsrq */
|
||||||
// filler: 0x23 - 0x3f
|
// filler: 0x23 - 0x3f
|
||||||
{0},{0},{0},{0},{0}, {0},{0},{0},{0},{0},{0},{0},{0},
|
{{0},0},{{0},0},{{0},0},{{0},0},{{0},0}, {{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},
|
||||||
{0},{0},{0},{0},{0},{0},{0},{0}, {0},{0},{0},{0},{0},{0},{0},{0},
|
{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0}, {{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},
|
||||||
SSE41_OP(dpps),
|
SSE41_OP(dpps),
|
||||||
SSE41_OP(dppd),
|
SSE41_OP(dppd),
|
||||||
SSE41_OP(mpsadbw),
|
SSE41_OP(mpsadbw),
|
||||||
{0}, // filler: 0x43
|
{{0},0}, // filler: 0x43
|
||||||
PCLMULQDQ_OP(pclmulqdq),
|
PCLMULQDQ_OP(pclmulqdq),
|
||||||
// filler: 0x45 - 0x5f
|
// filler: 0x45 - 0x5f
|
||||||
{0},{0},{0}, {0},{0},{0},{0},{0},{0},{0},{0},
|
{{0},0},{{0},0},{{0},0}, {{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},
|
||||||
{0},{0},{0},{0},{0},{0},{0},{0}, {0},{0},{0},{0},{0},{0},{0},{0},
|
{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0}, {{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},
|
||||||
SSE42_OP(pcmpestrm),
|
SSE42_OP(pcmpestrm),
|
||||||
SSE42_OP(pcmpestri),
|
SSE42_OP(pcmpestri),
|
||||||
SSE42_OP(pcmpistrm),
|
SSE42_OP(pcmpistrm),
|
||||||
SSE42_OP(pcmpistri),
|
SSE42_OP(pcmpistri),
|
||||||
// filler: 0x64 - 0xde
|
// filler: 0x64 - 0xde
|
||||||
{0},{0},{0},{0}, {0},{0},{0},{0},{0},{0},{0},{0},
|
{{0},0},{{0},0},{{0},0},{{0},0}, {{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},
|
||||||
{0},{0},{0},{0},{0},{0},{0},{0}, {0},{0},{0},{0},{0},{0},{0},{0},
|
{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0}, {{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},
|
||||||
{0},{0},{0},{0},{0},{0},{0},{0}, {0},{0},{0},{0},{0},{0},{0},{0},
|
{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0}, {{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},
|
||||||
{0},{0},{0},{0},{0},{0},{0},{0}, {0},{0},{0},{0},{0},{0},{0},{0},
|
{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0}, {{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},
|
||||||
{0},{0},{0},{0},{0},{0},{0},{0}, {0},{0},{0},{0},{0},{0},{0},{0},
|
{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0}, {{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},
|
||||||
{0},{0},{0},{0},{0},{0},{0},{0}, {0},{0},{0},{0},{0},{0},{0},{0},
|
{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0}, {{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},
|
||||||
{0},{0},{0},{0},{0},{0},{0},{0}, {0},{0},{0},{0},{0},{0},{0},{0},
|
{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0}, {{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},
|
||||||
{0},{0},{0},{0},{0},{0},{0},{0}, {0},{0},{0},{0},{0},{0},{0},
|
{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0}, {{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},
|
||||||
AESNI_OP(aeskeygenassist),
|
AESNI_OP(aeskeygenassist),
|
||||||
// filler: 0xe0 - 0xff
|
// filler: 0xe0 - 0xff
|
||||||
{0},{0},{0},{0},{0},{0},{0},{0}, {0},{0},{0},{0},{0},{0},{0},{0},
|
{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0}, {{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},
|
||||||
{0},{0},{0},{0},{0},{0},{0},{0}, {0},{0},{0},{0},{0},{0},{0},{0},
|
{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0}, {{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},{{0},0},
|
||||||
#else
|
#else
|
||||||
[0x08] = SSE41_OP(roundps),
|
[0x08] = SSE41_OP(roundps),
|
||||||
[0x09] = SSE41_OP(roundpd),
|
[0x09] = SSE41_OP(roundpd),
|
||||||
|
@ -288,14 +288,14 @@ bool cpu_restore_state(CPUState *cpu, uintptr_t retaddr)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
static inline void map_exec(void *addr, long size)
|
static inline QEMU_UNUSED_FUNC void map_exec(void *addr, long size)
|
||||||
{
|
{
|
||||||
DWORD old_protect;
|
DWORD old_protect;
|
||||||
VirtualProtect(addr, size,
|
VirtualProtect(addr, size,
|
||||||
PAGE_EXECUTE_READWRITE, &old_protect);
|
PAGE_EXECUTE_READWRITE, &old_protect);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
static inline void map_exec(void *addr, long size)
|
static inline QEMU_UNUSED_FUNC void map_exec(void *addr, long size)
|
||||||
{
|
{
|
||||||
unsigned long start, end, page_size;
|
unsigned long start, end, page_size;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user