diff options
author | Suraj Jitindar Singh | 2018-01-19 06:00:02 +0100 |
---|---|---|
committer | David Gibson | 2018-01-29 04:24:55 +0100 |
commit | 8f38eaf8f9dd194c9961cf76c675724930ce4570 (patch) | |
tree | 70ff3cdc48a9051a60dd6e0b97db8d87922156ec /include/hw | |
parent | target/ppc/spapr_caps: Add support for tristate spapr_capabilities (diff) | |
download | qemu-8f38eaf8f9dd194c9961cf76c675724930ce4570.tar.gz qemu-8f38eaf8f9dd194c9961cf76c675724930ce4570.tar.xz qemu-8f38eaf8f9dd194c9961cf76c675724930ce4570.zip |
target/ppc/spapr_caps: Add new tristate cap safe_cache
Add new tristate cap cap-cfpc to represent the cache flush on privilege
change 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.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/hw/ppc/spapr.h b/include/hw/ppc/spapr.h index 61bb3632c4..ff476693d1 100644 --- a/include/hw/ppc/spapr.h +++ b/include/hw/ppc/spapr.h @@ -60,8 +60,10 @@ typedef enum { #define SPAPR_CAP_VSX 0x01 /* Decimal Floating Point */ #define SPAPR_CAP_DFP 0x02 +/* Cache Flush on Privilege Change */ +#define SPAPR_CAP_CFPC 0x03 /* Num Caps */ -#define SPAPR_CAP_NUM (SPAPR_CAP_DFP + 1) +#define SPAPR_CAP_NUM (SPAPR_CAP_CFPC + 1) /* * Capability Values @@ -779,6 +781,7 @@ int spapr_caps_pre_save(void *opaque); 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; static inline uint8_t spapr_get_cap(sPAPRMachineState *spapr, int cap) { |