fixed MSDEV warnings
This commit is contained in:
parent
68c5312ee1
commit
574b69c81e
@ -248,7 +248,7 @@ BX_INSF_TYPE BX_CPP_AttrRegparmN(1) BX_CPU_C::linkTrace(bxInstruction_c *i)
|
||||
|
||||
if (BX_CPU_THIS_PTR async_event) return;
|
||||
|
||||
Bit32u delta = BX_CPU_THIS_PTR icount - BX_CPU_THIS_PTR icount_last_sync;
|
||||
Bit32u delta = (Bit32u) (BX_CPU_THIS_PTR icount - BX_CPU_THIS_PTR icount_last_sync);
|
||||
if(delta >= bx_pc_system.getNumCpuTicksLeftNextEvent())
|
||||
return;
|
||||
|
||||
|
@ -893,7 +893,7 @@ struct monitor_addr_t {
|
||||
};
|
||||
#endif
|
||||
|
||||
class BX_SMM_State;
|
||||
struct BX_SMM_State;
|
||||
|
||||
class BOCHSAPI BX_CPU_C : public logfunctions {
|
||||
|
||||
|
@ -266,7 +266,7 @@ float32 float32_muladd(float32 a, float32 b, float32 c, int flags, float_status_
|
||||
if (cExp == 0) {
|
||||
if (!cSig) {
|
||||
/* Throw out the special case of c being an exact zero now */
|
||||
pSig = shift64RightJamming(pSig64, 32);
|
||||
pSig = (Bit32u) shift64RightJamming(pSig64, 32);
|
||||
return roundAndPackFloat32(zSign, pExp - 1, pSig, status);
|
||||
}
|
||||
float_raise(status, float_flag_denormal);
|
||||
|
@ -32,7 +32,7 @@ typedef void BX_INSF_TYPE;
|
||||
|
||||
#define BX_SYNC_TIME_IF_SINGLE_PROCESSOR(allowed_delta) { \
|
||||
if (BX_SMP_PROCESSORS == 1) { \
|
||||
Bit32u delta = BX_CPU_THIS_PTR icount - BX_CPU_THIS_PTR icount_last_sync; \
|
||||
Bit32u delta = (Bit32u)(BX_CPU_THIS_PTR icount - BX_CPU_THIS_PTR icount_last_sync); \
|
||||
if (delta >= allowed_delta) { \
|
||||
BX_CPU_THIS_PTR sync_icount(); \
|
||||
BX_TICKN(delta); \
|
||||
|
@ -729,7 +729,7 @@ bx_phy_address BX_CPU_C::translate_linear_long_mode(bx_address laddr, Bit32u &lp
|
||||
page_fault(ERROR_RESERVED | ERROR_PROTECTION, laddr, user, rw);
|
||||
}
|
||||
|
||||
lpf_mask = offset_mask;
|
||||
lpf_mask = (Bit32u) offset_mask;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -826,7 +826,7 @@ BX_CPP_INLINE void sse_pbroadcastb(BxPackedXmmRegister *op, Bit8u val_8)
|
||||
}
|
||||
}
|
||||
|
||||
BX_CPP_INLINE void sse_pbroadcastw(BxPackedXmmRegister *op, Bit8u val_16)
|
||||
BX_CPP_INLINE void sse_pbroadcastw(BxPackedXmmRegister *op, Bit16u val_16)
|
||||
{
|
||||
for(unsigned n=0; n<8; n++) {
|
||||
op->xmm16u(n) = val_16;
|
||||
|
@ -57,7 +57,7 @@ void BX_CPP_AttrRegparmN(2) BX_CPU_C::stackPrefetch(bx_address offset, unsigned
|
||||
return;
|
||||
|
||||
Bit32u limit = BX_CPU_THIS_PTR sregs[BX_SEG_REG_SS].cache.u.segment.limit_scaled;
|
||||
Bit32u pageStart = offset - pageOffset;
|
||||
Bit32u pageStart = (Bit32u) offset - pageOffset;
|
||||
|
||||
if (! BX_CPU_THIS_PTR sregs[BX_SEG_REG_SS].cache.valid) {
|
||||
BX_ERROR(("stackPrefetch: SS not valid"));
|
||||
|
@ -259,7 +259,7 @@ bx_bool BX_CPU_C::vmcs_field_supported(Bit32u encoding)
|
||||
|
||||
case VMCS_64BIT_CONTROL_VMFUNC_CTRLS:
|
||||
case VMCS_64BIT_CONTROL_VMFUNC_CTRLS_HI:
|
||||
return BX_CPU_THIS_PTR vmx_cap.vmx_vmfunc_supported_bits;
|
||||
return BX_CPU_THIS_PTR vmx_cap.vmx_vmfunc_supported_bits != 0;
|
||||
|
||||
case VMCS_64BIT_CONTROL_EPTP_LIST_ADDRESS:
|
||||
case VMCS_64BIT_CONTROL_EPTP_LIST_ADDRESS_HI:
|
||||
|
@ -652,7 +652,7 @@ typedef struct bx_VMCS
|
||||
Bit32u pause_loop_exiting_gap;
|
||||
Bit32u pause_loop_exiting_window;
|
||||
Bit64u last_pause_time;
|
||||
Bit32u first_pause_time;
|
||||
Bit64u first_pause_time;
|
||||
#endif
|
||||
|
||||
#if BX_SUPPORT_VMX >= 2
|
||||
|
@ -1142,7 +1142,7 @@ LRESULT CALLBACK simWndProc(HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM lParam)
|
||||
|
||||
case WM_MOUSEMOVE:
|
||||
if (!mouseModeChange) {
|
||||
processMouseXY(LOWORD(lParam), HIWORD(lParam), 0, wParam, 0);
|
||||
processMouseXY(LOWORD(lParam), HIWORD(lParam), 0, (int) wParam, 0);
|
||||
}
|
||||
return 0;
|
||||
|
||||
@ -1172,11 +1172,11 @@ LRESULT CALLBACK simWndProc(HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM lParam)
|
||||
bx_gui->mouse_toggle_check(BX_MT_LBUTTON, 0);
|
||||
mouseModeChange = FALSE;
|
||||
} else {
|
||||
processMouseXY(LOWORD(lParam), HIWORD(lParam), 0, wParam, 1);
|
||||
processMouseXY(LOWORD(lParam), HIWORD(lParam), 0, (int) wParam, 1);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
processMouseXY(LOWORD(lParam), HIWORD(lParam), 0, wParam, 1);
|
||||
processMouseXY(LOWORD(lParam), HIWORD(lParam), 0, (int) wParam, 1);
|
||||
return 0;
|
||||
|
||||
case WM_MBUTTONDOWN:
|
||||
@ -1192,7 +1192,7 @@ LRESULT CALLBACK simWndProc(HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM lParam)
|
||||
bx_gui->mouse_toggle_check(BX_MT_MBUTTON, 0);
|
||||
mouseModeChange = FALSE;
|
||||
} else {
|
||||
processMouseXY(LOWORD(lParam), HIWORD(lParam), 0, wParam, 4);
|
||||
processMouseXY(LOWORD(lParam), HIWORD(lParam), 0, (int) wParam, 4);
|
||||
}
|
||||
return 0;
|
||||
|
||||
@ -1210,11 +1210,11 @@ LRESULT CALLBACK simWndProc(HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM lParam)
|
||||
bx_gui->mouse_toggle_check(BX_MT_RBUTTON, 0);
|
||||
mouseModeChange = FALSE;
|
||||
} else {
|
||||
processMouseXY(LOWORD(lParam), HIWORD(lParam), 0, wParam, 2);
|
||||
processMouseXY(LOWORD(lParam), HIWORD(lParam), 0, (int) wParam, 2);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
processMouseXY(LOWORD(lParam), HIWORD(lParam), 0, wParam, 2);
|
||||
processMouseXY(LOWORD(lParam), HIWORD(lParam), 0, (int) wParam, 2);
|
||||
return 0;
|
||||
|
||||
case WM_CLOSE:
|
||||
|
Loading…
Reference in New Issue
Block a user