Skip to content

Commit

Permalink
Hexagon: migration: add MemLog
Browse files Browse the repository at this point in the history
Signed-off-by: Matheus Tavares Bernardino <[email protected]>
  • Loading branch information
quic-mathbern authored and androm3da committed Dec 12, 2023
1 parent 72e9b92 commit 6308573
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions target/hexagon/machine.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,19 @@ const VMStateDescription vmstate_hex_exception_info = {
}
};

const VMStateDescription vmstate_mem_log = {
.name = "mem_log",
.version_id = 0,
.minimum_version_id = 0,
.fields = (VMStateField[]) {
VMSTATE_UINT32(va, MemLog),
VMSTATE_UINT8(width, MemLog),
VMSTATE_UINT32(data32, MemLog),
VMSTATE_UINT64(data64, MemLog),
VMSTATE_END_OF_LIST()
}
};

const VMStateDescription vmstate_hexagon_cpu = {
.name = "cpu",
.version_id = 0,
Expand Down Expand Up @@ -235,6 +248,8 @@ const VMStateDescription vmstate_hexagon_cpu = {
VMSTATE_STRUCT(env.pmu, HexagonCPU, 0, vmstate_pmustate, PMUState),
VMSTATE_STRUCT(env.einfo, HexagonCPU, 0, vmstate_hex_exception_info,
hex_exception_info),
VMSTATE_STRUCT_ARRAY(env.mem_log_stores, HexagonCPU, STORES_MAX, 0,
vmstate_mem_log, MemLog),

VMSTATE_END_OF_LIST()
},
Expand Down

0 comments on commit 6308573

Please sign in to comment.