refactor: add helper to create uint64 bitmask

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2025-10-09 12:27:13 +00:00
committed by Compute-Runtime-Automation
parent fd02b706bb
commit 1918c5e9da
9 changed files with 35 additions and 23 deletions

View File

@@ -11,6 +11,7 @@
#include "shared/source/aub_mem_dump/page_table_entry_bits.h"
#include "shared/source/debug_settings/debug_settings_manager.h"
#include "shared/source/helpers/basic_math.h"
#include "shared/source/helpers/bit_helpers.h"
#include "shared/source/helpers/constants.h"
#include "shared/source/helpers/gfx_core_helper.h"
#include "shared/source/helpers/string.h"
@@ -58,7 +59,7 @@ uint64_t AubHelper::getTotalMemBankSize(const ReleaseHelper *releaseHelper) {
}
uint64_t AubHelper::getPTEntryBits(uint64_t pdEntryBits) {
pdEntryBits &= ~BIT(PageTableEntry::localMemoryBit);
pdEntryBits &= ~makeBitMask<PageTableEntry::localMemoryBit>();
return pdEntryBits;
}