Files
compute-runtime/shared/test/common/gen11/unit_test_helper_gen11.cpp
Mateusz Hoppe 0e58821455 Change DebugMode and TdCtl registers on xehp
- refactor tests to use UnitTestHelper

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2021-09-24 07:38:48 +02:00

38 lines
763 B
C++

/*
* Copyright (C) 2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/gen11/hw_info.h"
#include "shared/test/common/helpers/unit_test_helper.h"
#include "shared/test/common/helpers/unit_test_helper.inl"
namespace NEO {
using Family = ICLFamily;
template <>
uint32_t UnitTestHelper<Family>::getDebugModeRegisterOffset() {
return 0x20d8;
}
template <>
uint32_t UnitTestHelper<Family>::getDebugModeRegisterValue() {
return (1u << 5) | (1u << 21);
}
template <>
uint32_t UnitTestHelper<Family>::getTdCtlRegisterOffset() {
return 0xe400;
}
template <>
uint32_t UnitTestHelper<Family>::getTdCtlRegisterValue() {
return (1u << 7) | (1u << 4);
}
template struct UnitTestHelper<ICLFamily>;
} // namespace NEO