From: Corey Minyard Date: Mon, 26 Nov 2018 18:54:45 +0000 (-0600) Subject: migration: Add a VMSTATE_BOOL_TEST() macro X-Git-Tag: v4.0.0-rc0~68^2~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8e995f34031d66666b45b779458cb370e86cfe2d;p=thirdparty%2Fqemu.git migration: Add a VMSTATE_BOOL_TEST() macro This will be needed by coming I2C changes. Signed-off-by: Corey Minyard Reviewed-by: Dr. David Alan Gilbert --- diff --git a/include/migration/vmstate.h b/include/migration/vmstate.h index 067b126cf16..a668ec75b83 100644 --- a/include/migration/vmstate.h +++ b/include/migration/vmstate.h @@ -851,6 +851,9 @@ extern const VMStateInfo vmstate_info_qtailq; #define VMSTATE_INT32_POSITIVE_LE(_f, _s) \ VMSTATE_SINGLE(_f, _s, 0, vmstate_info_int32_le, int32_t) +#define VMSTATE_BOOL_TEST(_f, _s, _t) \ + VMSTATE_SINGLE_TEST(_f, _s, _t, 0, vmstate_info_bool, bool) + #define VMSTATE_INT8_TEST(_f, _s, _t) \ VMSTATE_SINGLE_TEST(_f, _s, _t, 0, vmstate_info_int8, int8_t)