fix msvc warnings

This commit is contained in:
Stanislav Shwartsman 2017-03-17 17:35:15 +00:00
parent 78f51adf42
commit 15d9b068a3
2 changed files with 5 additions and 5 deletions

View File

@ -5453,7 +5453,7 @@ BX_CPP_INLINE bx_address BX_CPU_C::agen_read(unsigned s, bx_address offset, unsi
return get_laddr64(s, offset);
}
#endif
return agen_read32(s, offset, len);
return agen_read32(s, (Bit32u)offset, len);
}
BX_CPP_INLINE bx_address BX_CPU_C::agen_read_aligned(unsigned s, bx_address offset, unsigned len)
@ -5463,7 +5463,7 @@ BX_CPP_INLINE bx_address BX_CPU_C::agen_read_aligned(unsigned s, bx_address offs
return get_laddr64(s, offset);
}
#endif
return agen_read_aligned32(s, offset, len);
return agen_read_aligned32(s, (Bit32u)offset, len);
}
BX_CPP_INLINE bx_address BX_CPU_C::agen_write(unsigned s, bx_address offset, unsigned len)
@ -5473,7 +5473,7 @@ BX_CPP_INLINE bx_address BX_CPU_C::agen_write(unsigned s, bx_address offset, uns
return get_laddr64(s, offset);
}
#endif
return agen_write32(s, offset, len);
return agen_write32(s, (Bit32u)offset, len);
}
BX_CPP_INLINE bx_address BX_CPU_C::agen_write_aligned(unsigned s, bx_address offset, unsigned len)
@ -5483,7 +5483,7 @@ BX_CPP_INLINE bx_address BX_CPU_C::agen_write_aligned(unsigned s, bx_address off
return get_laddr64(s, offset);
}
#endif
return agen_write_aligned32(s, offset, len);
return agen_write_aligned32(s, (Bit32u)offset, len);
}
#include "access.h"

View File

@ -463,7 +463,7 @@ enum VMFunctions {
#define BX_VMX_VMCS_REVISION_ID 0x2B /* better to be unique bochs VMCS revision id */
struct VMCS_Mapping {
class VMCS_Mapping {
private:
Bit32u revision_id;