From c6b1f6c22bd85d3870e2d95956d519743c5d577e Mon Sep 17 00:00:00 2001 From: Stanislav Shwartsman Date: Sun, 30 Dec 2012 19:49:20 +0000 Subject: [PATCH] fixed IsValidPageAlignedPhyAddr check for VMX/SVM --- bochs/cpu/cpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bochs/cpu/cpu.h b/bochs/cpu/cpu.h index 7e48f172b..d6829b9ae 100644 --- a/bochs/cpu/cpu.h +++ b/bochs/cpu/cpu.h @@ -472,7 +472,7 @@ extern const char* cpu_mode_string(unsigned cpu_mode); #define IsValidPhyAddr(addr) (((addr) & BX_PHY_ADDRESS_RESERVED_BITS) == 0) -#define IsValidPageAlignedPhyAddr(addr) (((addr) & BX_PHY_ADDRESS_RESERVED_BITS & ~BX_CONST64(0xfff)) == 0) +#define IsValidPageAlignedPhyAddr(addr) (((addr) & (BX_PHY_ADDRESS_RESERVED_BITS | 0xfff)) == 0) #define CACHE_LINE_SIZE 64