fixed MSDEV warnings

This commit is contained in:
Stanislav Shwartsman 2012-11-27 15:40:45 +00:00
parent 68c5312ee1
commit 574b69c81e
10 changed files with 15 additions and 15 deletions

View File

@ -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;

View File

@ -893,7 +893,7 @@ struct monitor_addr_t {
};
#endif
class BX_SMM_State;
struct BX_SMM_State;
class BOCHSAPI BX_CPU_C : public logfunctions {

View File

@ -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);

View File

@ -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); \

View File

@ -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;
}
}

View File

@ -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;

View File

@ -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"));

View File

@ -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:

View File

@ -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

View File

@ -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: