target/ppc/spapr_caps: Add support for tristate spapr_capabilities
commit6898aed77f4636c3e77af9c12631f583f22cb5db
authorSuraj Jitindar Singh <sjitindarsingh@gmail.com>
Fri, 19 Jan 2018 05:00:01 +0000 (19 16:00 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 29 Jan 2018 03:24:55 +0000 (29 14:24 +1100)
tree3e0c433b4e735218e5ac47d03c9f6c9a6b7f42c8
parent8acc2ae5e91681ceda3ff4cf946ebf163f6012e9
target/ppc/spapr_caps: Add support for tristate spapr_capabilities

spapr_caps are used to represent the level of support for various
capabilities related to the spapr machine type. Currently there is
only support for boolean capabilities.

Add support for tristate capabilities by implementing their get/set
functions. These capabilities can have the values 0, 1 or 2
corresponding to broken, workaround and fixed.

Signed-off-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr_caps.c
include/hw/ppc/spapr.h