Zebin support

Change-Id: I1e426ee2c5174fd0a4c51c1644cda467c2b88881
This commit is contained in:
Jaroslaw Chodor
2020-07-30 13:18:54 +02:00
parent 855c474aaf
commit 321f649854
27 changed files with 4763 additions and 18 deletions

View File

@@ -441,6 +441,10 @@ void Program::replaceDeviceBinary(std::unique_ptr<char[]> newBinary, size_t newB
this->packedDeviceBinarySize = newBinarySize;
this->unpackedDeviceBinary.reset();
this->unpackedDeviceBinarySize = 0U;
if (isAnySingleDeviceBinaryFormat(ArrayRef<const uint8_t>(reinterpret_cast<uint8_t *>(this->packedDeviceBinary.get()), this->packedDeviceBinarySize))) {
this->unpackedDeviceBinary = makeCopy(packedDeviceBinary.get(), packedDeviceBinarySize);
this->unpackedDeviceBinarySize = packedDeviceBinarySize;
}
} else {
this->packedDeviceBinary.reset();
this->packedDeviceBinarySize = 0U;