mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 09:14:47 +08:00
feature: Add support for V3 state save header
Related-to: NEO-8396 Signed-off-by: Brandon Yates <brandon.yates@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
ef37b140de
commit
ab92499b56
@@ -10,6 +10,8 @@
|
||||
#include "shared/source/helpers/non_copyable_or_moveable.h"
|
||||
#include "shared/source/memory_manager/memory_manager.h"
|
||||
|
||||
#include "common/StateSaveAreaHeader.h"
|
||||
|
||||
#include <cstdint>
|
||||
#include <memory>
|
||||
#include <type_traits>
|
||||
@@ -21,6 +23,17 @@ class GraphicsAllocation;
|
||||
class LinearStream;
|
||||
class OSInterface;
|
||||
|
||||
// NOLINTBEGIN
|
||||
struct StateSaveAreaHeader {
|
||||
struct SIP::StateSaveArea versionHeader;
|
||||
union {
|
||||
struct SIP::intelgt_state_save_area regHeader;
|
||||
struct SIP::intelgt_state_save_area_V3 regHeaderV3;
|
||||
};
|
||||
};
|
||||
|
||||
// NOLINTEND
|
||||
|
||||
#pragma pack(1)
|
||||
struct SbaTrackedAddresses {
|
||||
char magic[8] = "sbaarea";
|
||||
@@ -55,19 +68,6 @@ struct DebugAreaHeader {
|
||||
};
|
||||
static_assert(sizeof(DebugAreaHeader) == 32u * sizeof(uint8_t));
|
||||
|
||||
struct alignas(4) DebuggerVersion {
|
||||
uint8_t major;
|
||||
uint8_t minor;
|
||||
uint16_t patch;
|
||||
};
|
||||
struct alignas(8) StateSaveAreaHeader {
|
||||
char magic[8] = "tssarea";
|
||||
uint64_t reserved1;
|
||||
struct DebuggerVersion version;
|
||||
uint8_t size;
|
||||
uint8_t reserved2[3];
|
||||
};
|
||||
|
||||
#pragma pack()
|
||||
|
||||
class DebuggerL0 : public NEO::Debugger, NEO::NonCopyableOrMovableClass {
|
||||
|
||||
Reference in New Issue
Block a user