Skip to content

Commit e0c517b

Browse files
libipt: support 18/1, 18/3, and 6/213
We do not know about the errata for this microarchitecture but let's assume that we carry forward existing errata until we know more. Signed-off-by: Markus Metzger <[email protected]>
1 parent 53bac89 commit e0c517b

File tree

5 files changed

+24
-0
lines changed

5 files changed

+24
-0
lines changed

libipt/src/pt_config.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ int pt_cpu_errata(struct pt_errata *errata, const struct pt_cpu *cpu)
114114
case 0xac:
115115
case 0xbd:
116116
case 0xcc:
117+
case 0xd5:
117118
errata->bdm70 = 1;
118119
errata->skd022 = 1;
119120
errata->apl11 = 1;
@@ -137,6 +138,17 @@ int pt_cpu_errata(struct pt_errata *errata, const struct pt_cpu *cpu)
137138
}
138139
break;
139140

141+
case 0x12:
142+
switch (cpu->model) {
143+
case 0x01:
144+
case 0x03:
145+
errata->bdm70 = 1;
146+
errata->skd022 = 1;
147+
errata->apl11 = 1;
148+
return 0;
149+
}
150+
break;
151+
140152
case 0x13:
141153
switch (cpu->model) {
142154
case 0x01:

test/src/apl11.ptt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@
5555
; cpu 6/189
5656
; cpu 6/197
5757
; cpu 6/198
58+
; cpu 18/1
59+
; cpu 18/3
60+
; cpu 6/213
5861
;
5962

6063
org 0x1000

test/src/bdm70-psb_fup-tip_pge.ptt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@
6969
; cpu 6/197
7070
; cpu 6/198
7171
; cpu 19/1
72+
; cpu 18/1
73+
; cpu 18/3
74+
; cpu 6/213
7275
;
7376
; Variant: sync at the PSB directly preceding the TIP.PGE.
7477
;

test/src/bdm70-tip_pgd-psb_fup-tip_pge.ptt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@
6969
; cpu 6/197
7070
; cpu 6/198
7171
; cpu 19/1
72+
; cpu 18/1
73+
; cpu 18/3
74+
; cpu 6/213
7275
;
7376
; Variant: sync at an earlier PSB.
7477
;

test/src/skd022.ptt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@
6666
; cpu 6/197
6767
; cpu 6/198
6868
; cpu 19/1
69+
; cpu 18/1
70+
; cpu 18/3
71+
; cpu 6/213
6972
;
7073

7174
org 0x1000

0 commit comments

Comments
 (0)