summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorvboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f>2018-07-21 04:54:31 +0000
committervboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f>2018-07-21 04:54:31 +0000
commit5eafa6ffec2c459d53810fdda67c3ad08af70e5d (patch)
tree9fa06be632e01d419bb2fedc721de02950f2a701 /src
parenta2e63e5684e8bd17a4007c091e2d27b8de7b7b48 (diff)
downloadVirtualBox-svn-5eafa6ffec2c459d53810fdda67c3ad08af70e5d.tar.gz
VMM/HM: Hex digit nits.
git-svn-id: https://www.virtualbox.org/svn/vbox/trunk@73288 cfe28804-0f27-0410-a406-dd0f0b0b656f
Diffstat (limited to 'src')
-rw-r--r--src/VBox/VMM/VMMR0/HMVMXR0.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/VBox/VMM/VMMR0/HMVMXR0.cpp b/src/VBox/VMM/VMMR0/HMVMXR0.cpp
index 13c40de9384..31091764898 100644
--- a/src/VBox/VMM/VMMR0/HMVMXR0.cpp
+++ b/src/VBox/VMM/VMMR0/HMVMXR0.cpp
@@ -1168,11 +1168,11 @@ static void hmR0VmxSetMsrPermission(PVMCPU pVCpu, uint32_t uMsr, VMXMSREXITREAD
* 0x800 - 0xbff - Low MSR write bits
* 0xc00 - 0xfff - High MSR write bits
*/
- if (uMsr <= 0x00001FFF)
+ if (uMsr <= 0x00001fff)
iBit = uMsr;
- else if (uMsr - UINT32_C(0xC0000000) <= UINT32_C(0x00001FFF))
+ else if (uMsr - UINT32_C(0xc0000000) <= UINT32_C(0x00001fff))
{
- iBit = uMsr - UINT32_C(0xC0000000);
+ iBit = uMsr - UINT32_C(0xc0000000);
pbMsrBitmap += 0x400;
}
else
@@ -1213,12 +1213,12 @@ static int hmR0VmxGetMsrPermission(PVMCPU pVCpu, uint32_t uMsr, PVMXMSREXITREAD
uint8_t *pbMsrBitmap = (uint8_t *)pVCpu->hm.s.vmx.pvMsrBitmap;
/* See hmR0VmxSetMsrPermission() for the layout. */
- if (uMsr <= 0x00001FFF)
+ if (uMsr <= 0x00001fff)
iBit = uMsr;
- else if ( uMsr >= 0xC0000000
- && uMsr <= 0xC0001FFF)
+ else if ( uMsr >= 0xc0000000
+ && uMsr <= 0xc0001fff)
{
- iBit = (uMsr - 0xC0000000);
+ iBit = (uMsr - 0xc0000000);
pbMsrBitmap += 0x400;
}
else