libipt: support cpu 6/165 and 6/166

We do not know about the errata for those microarchitectures but let's
assume that we carry forward existing errata until we know more.

Change-Id: Ibc89db5f0c5e86c69b4a7f3126c9dfacd6aaa4f4
Signed-off-by: Markus Metzger <markus.t.metzger@intel.com>
diff --git a/libipt/src/pt_config.c b/libipt/src/pt_config.c
index f3a920f..d2bf8dc 100644
--- a/libipt/src/pt_config.c
+++ b/libipt/src/pt_config.c
@@ -61,6 +61,8 @@
 		case 0x5e:
 		case 0x8e:
 		case 0x9e:
+		case 0xa5:
+		case 0xa6:
 			errata->bdm70 = 1;
 			errata->skd007 = 1;
 			errata->skd022 = 1;
diff --git a/test/src/bdm70-psb_fup-tip_pge.ptt b/test/src/bdm70-psb_fup-tip_pge.ptt
index c169f10..e6c24a6 100644
--- a/test/src/bdm70-psb_fup-tip_pge.ptt
+++ b/test/src/bdm70-psb_fup-tip_pge.ptt
@@ -43,6 +43,8 @@
 ;   cpu 6/102
 ;   cpu 6/125
 ;   cpu 6/126
+;   cpu 6/165
+;   cpu 6/166
 ;
 ; Variant: sync at the PSB directly preceding the TIP.PGE.
 ;
diff --git a/test/src/bdm70-tip_pgd-psb_fup-tip_pge.ptt b/test/src/bdm70-tip_pgd-psb_fup-tip_pge.ptt
index ced94d5..e9e3d01 100644
--- a/test/src/bdm70-tip_pgd-psb_fup-tip_pge.ptt
+++ b/test/src/bdm70-tip_pgd-psb_fup-tip_pge.ptt
@@ -43,6 +43,8 @@
 ;   cpu 6/102
 ;   cpu 6/125
 ;   cpu 6/126
+;   cpu 6/165
+;   cpu 6/166
 ;
 ; Variant: sync at an earlier PSB.
 ;
diff --git a/test/src/skd007.ptt b/test/src/skd007.ptt
index 429fd12..7e05c9e 100644
--- a/test/src/skd007.ptt
+++ b/test/src/skd007.ptt
@@ -35,6 +35,8 @@
 ;   cpu 6/94
 ;   cpu 6/142
 ;   cpu 6/158
+;   cpu 6/165
+;   cpu 6/166
 ;
 
 org 0x1000
diff --git a/test/src/skd010-mode_tsx-fup.ptt b/test/src/skd010-mode_tsx-fup.ptt
index 5457cde..f89c6a5 100644
--- a/test/src/skd010-mode_tsx-fup.ptt
+++ b/test/src/skd010-mode_tsx-fup.ptt
@@ -34,6 +34,8 @@
 ;   cpu 6/94
 ;   cpu 6/142
 ;   cpu 6/158
+;   cpu 6/165
+;   cpu 6/166
 ;
 ; Variant: Missing FUP, sync at MODE.TSX + FUP.
 ;
diff --git a/test/src/skd010-psb.ptt b/test/src/skd010-psb.ptt
index fbb86a0..8cf1d61 100644
--- a/test/src/skd010-psb.ptt
+++ b/test/src/skd010-psb.ptt
@@ -34,6 +34,8 @@
 ;   cpu 6/94
 ;   cpu 6/142
 ;   cpu 6/158
+;   cpu 6/165
+;   cpu 6/166
 ;
 ; Variant: Missing FUP, sync at PSB+.
 ;
diff --git a/test/src/skd010-tip.ptt b/test/src/skd010-tip.ptt
index fe35388..3aed11c 100644
--- a/test/src/skd010-tip.ptt
+++ b/test/src/skd010-tip.ptt
@@ -34,6 +34,8 @@
 ;   cpu 6/94
 ;   cpu 6/142
 ;   cpu 6/158
+;   cpu 6/165
+;   cpu 6/166
 ;
 ; Variant: Missing FUP, sync at TIP.
 ;
diff --git a/test/src/skd010-tip_pgd.ptt b/test/src/skd010-tip_pgd.ptt
index f8b03e4..3315ab2 100644
--- a/test/src/skd010-tip_pgd.ptt
+++ b/test/src/skd010-tip_pgd.ptt
@@ -34,6 +34,8 @@
 ;   cpu 6/94
 ;   cpu 6/142
 ;   cpu 6/158
+;   cpu 6/165
+;   cpu 6/166
 ;
 ; Variant: Missing FUP, sync at TIP.PGD.
 ;
diff --git a/test/src/skd022.ptt b/test/src/skd022.ptt
index bfbeb0a..b4544b1 100644
--- a/test/src/skd022.ptt
+++ b/test/src/skd022.ptt
@@ -40,6 +40,8 @@
 ;   cpu 6/102
 ;   cpu 6/125
 ;   cpu 6/126
+;   cpu 6/165
+;   cpu 6/166
 ;
 
 org 0x1000
diff --git a/test/src/skl014-call.ptt b/test/src/skl014-call.ptt
index 07f9e9a..03258f7 100644
--- a/test/src/skl014-call.ptt
+++ b/test/src/skl014-call.ptt
@@ -44,6 +44,8 @@
 ;   cpu 6/102
 ;   cpu 6/125
 ;   cpu 6/126
+;   cpu 6/165
+;   cpu 6/166
 ;
 
 org 0x1000
diff --git a/test/src/skl014-jmp-jmp.ptt b/test/src/skl014-jmp-jmp.ptt
index c406b63..329c016 100644
--- a/test/src/skl014-jmp-jmp.ptt
+++ b/test/src/skl014-jmp-jmp.ptt
@@ -44,6 +44,8 @@
 ;   cpu 6/102
 ;   cpu 6/125
 ;   cpu 6/126
+;   cpu 6/165
+;   cpu 6/166
 ;
 
 org 0x1000
diff --git a/test/src/skl014-jmp.ptt b/test/src/skl014-jmp.ptt
index 463d11f..db9aed5 100644
--- a/test/src/skl014-jmp.ptt
+++ b/test/src/skl014-jmp.ptt
@@ -44,6 +44,8 @@
 ;   cpu 6/102
 ;   cpu 6/125
 ;   cpu 6/126
+;   cpu 6/165
+;   cpu 6/166
 ;
 
 org 0x1000
diff --git a/test/src/skl014-no_filter.ptt b/test/src/skl014-no_filter.ptt
index e34a74e..2842f67 100644
--- a/test/src/skl014-no_filter.ptt
+++ b/test/src/skl014-no_filter.ptt
@@ -35,6 +35,8 @@
 ;   cpu 6/102
 ;   cpu 6/125
 ;   cpu 6/126
+;   cpu 6/165
+;   cpu 6/166
 ;
 
 org 0x100000
diff --git a/test/src/skl168-cyc.ptt b/test/src/skl168-cyc.ptt
index ad854aa..c4d5010 100644
--- a/test/src/skl168-cyc.ptt
+++ b/test/src/skl168-cyc.ptt
@@ -40,6 +40,8 @@
 ;   cpu 6/94
 ;   cpu 6/142
 ;   cpu 6/158
+;   cpu 6/165
+;   cpu 6/166
 ;
 
 org 0x100000
diff --git a/test/src/skl168-mtc.ptt b/test/src/skl168-mtc.ptt
index ecf7b0d..456eaca 100644
--- a/test/src/skl168-mtc.ptt
+++ b/test/src/skl168-mtc.ptt
@@ -40,6 +40,8 @@
 ;   cpu 6/94
 ;   cpu 6/142
 ;   cpu 6/158
+;   cpu 6/165
+;   cpu 6/166
 ;
 
 org 0x100000