Debian Codegraph @

crit/images/core-ppc64.proto

raw
1 // SPDX-License-Identifier: MIT
2
3 syntax = "proto2";
4
5 import "opts.proto";
6
7 message user_ppc64_regs_entry {
8 /* Following is the list of registers starting at r0. */
9 repeated uint64 gpr = 1;
10 required uint64 nip = 2;
11 required uint64 msr = 3;
12 required uint64 orig_gpr3 = 4;
13 required uint64 ctr = 5;
14 required uint64 link = 6;
15 required uint64 xer = 7;
16 required uint64 ccr = 8;
17 required uint64 trap = 9;
18 /* For Transactional memory support since P8 */
19 optional uint64 texasr = 10;
20 optional uint64 tfhar = 11;
21 optional uint64 tfiar = 12;
22 }
23
24 message user_ppc64_fpstate_entry {
25 /* Following is the list of registers starting at fpr0 */
26 repeated uint64 fpregs = 1;
27 }
28
29 message user_ppc64_vrstate_entry {
30 /*
31 * Altivec registers
32 * The vector registers are 128bit registers (VSR[32..63]).
33 * The following vregs entry will store first the high part then the
34 * low one:
35 * VR0 = vrregs[0] << 64 | vrregs[1];
36 * VR1 = vrregs[2] << 64 | vrregs[3];
37 * ..
38 * The last entry stores in a 128bit field the VSCR which is a 32bit
39 * value returned by the kernel in a 128 field.
40 */
41 repeated uint64 vrregs = 1;
42 required uint32 vrsave = 2;
43 }
44
45 message user_ppc64_vsxstate_entry {
46 /*
47 * VSX registers
48 * The vector-scale registers are 128bit registers (VSR[0..64]).
49 * Since there is an overlapping over the VSX registers by the FPR and
50 * the Altivec registers, only the lower part of the first 32 VSX
51 * registers have to be saved.
52 */
53 repeated uint64 vsxregs = 1;
54 }
55
56 /*
57 * Transactional memory operation's state
58 */
59 message user_ppc64_tm_regs_entry {
60 required user_ppc64_regs_entry gpregs = 1;
61 optional user_ppc64_fpstate_entry fpstate = 2;
62 optional user_ppc64_vrstate_entry vrstate = 3;
63 optional user_ppc64_vsxstate_entry vsxstate = 4;
64 }
65
66 message thread_info_ppc64 {
67 required uint64 clear_tid_addr = 1[(criu).hex = true];
68 required user_ppc64_regs_entry gpregs = 2[(criu).hex = true];
69 optional user_ppc64_fpstate_entry fpstate = 3;
70 optional user_ppc64_vrstate_entry vrstate = 4;
71 optional user_ppc64_vsxstate_entry vsxstate = 5;
72 optional user_ppc64_tm_regs_entry tmstate = 6;
73 }