set_cstate will perform side-effects such as putting the processor to sleep or waking it up, and call the registered cstate listeners.
typedef struct { uint32 state; uint32 sub_state; } x86_cstate_t; SIM_INTERFACE(x86_cstate) { x86_cstate_t (*get_cstate)(conf_object_t *cpu_obj); void (*set_cstate)(conf_object_t *cpu_obj, uint32 state, uint32 sub_state); }; #define X86_CSTATE_INTERFACE "x86_cstate"