Add CMake support for PAL backend

Change-Id: Id0673d43217be305aa4ca7a612c416baee3fb23c
This commit is contained in:
German Andryeyev committed 2020-02-10 11:18:24 -05:00
1 parent 853b2e38a4
commit da5f4c554e
7 files changed
+172 -27

No files matched your search

+9 -16
View File
@@ -35,7 +35,6 @@
#include "palLib.h"
#include "palPlatform.h"
#include "palDevice.h"
#include "cz_id.h"
#include "acl.h"
#include "vdi_common.hpp"
@@ -546,22 +545,16 @@ void NullDevice::fillDeviceInfo(const Pal::DeviceProperties& palProp,
info_.platform_ = AMD_PLATFORM;
if (false && (asicRevision() == Pal::AsicRevision::Carrizo) &&
ASICREV_IS_CARRIZO_BRISTOL(palProp.revisionId)) {
const static char* bristol = "Bristol Ridge";
::strcpy(info_.name_, bristol);
} else {
if (settings().useLightning_) {
::strcpy(info_.name_, hwInfo()->machineTargetLC_);
if (hwInfo()->xnackEnabled_) {
::strcat(info_.name_, "+xnack");
}
if (info_.sramEccEnabled_) {
::strcat(info_.name_, "+sram-ecc");
}
} else {
::strcpy(info_.name_, hwInfo()->machineTarget_);
if (settings().useLightning_) {
::strcpy(info_.name_, hwInfo()->machineTargetLC_);
if (hwInfo()->xnackEnabled_) {
::strcat(info_.name_, "+xnack");
}
if (info_.sramEccEnabled_) {
::strcat(info_.name_, "+sram-ecc");
}
} else {
::strcpy(info_.name_, hwInfo()->machineTarget_);
}
::strcpy(info_.vendor_, "Advanced Micro Devices, Inc.");