summaryrefslogtreecommitdiffstats
path: root/include/hw
diff options
context:
space:
mode:
authorSuraj Jitindar Singh2018-01-19 06:00:03 +0100
committerDavid Gibson2018-01-29 04:24:55 +0100
commit09114fd8179977e4157b36aab2e3d68eaf08adca (patch)
treeae8358ddf36992f6d7e026e46c20f187d7df8650 /include/hw
parenttarget/ppc/spapr_caps: Add new tristate cap safe_cache (diff)
downloadqemu-09114fd8179977e4157b36aab2e3d68eaf08adca.tar.gz
qemu-09114fd8179977e4157b36aab2e3d68eaf08adca.tar.xz
qemu-09114fd8179977e4157b36aab2e3d68eaf08adca.zip
target/ppc/spapr_caps: Add new tristate cap safe_bounds_check
Add new tristate cap cap-sbbc to represent the speculation barrier bounds checking capability. Signed-off-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'include/hw')
-rw-r--r--include/hw/ppc/spapr.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/hw/ppc/spapr.h b/include/hw/ppc/spapr.h
index ff476693d1..c65be62e92 100644
--- a/include/hw/ppc/spapr.h
+++ b/include/hw/ppc/spapr.h
@@ -62,8 +62,10 @@ typedef enum {
#define SPAPR_CAP_DFP 0x02
/* Cache Flush on Privilege Change */
#define SPAPR_CAP_CFPC 0x03
+/* Speculation Barrier Bounds Checking */
+#define SPAPR_CAP_SBBC 0x04
/* Num Caps */
-#define SPAPR_CAP_NUM (SPAPR_CAP_CFPC + 1)
+#define SPAPR_CAP_NUM (SPAPR_CAP_SBBC + 1)
/*
* Capability Values
@@ -782,6 +784,7 @@ extern const VMStateDescription vmstate_spapr_cap_htm;
extern const VMStateDescription vmstate_spapr_cap_vsx;
extern const VMStateDescription vmstate_spapr_cap_dfp;
extern const VMStateDescription vmstate_spapr_cap_cfpc;
+extern const VMStateDescription vmstate_spapr_cap_sbbc;
static inline uint8_t spapr_get_cap(sPAPRMachineState *spapr, int cap)
{