1 /* 2 * CPU operations specific to system emulation 3 * 4 * Copyright (c) 2012 SUSE LINUX Products GmbH 5 * 6 * This work is licensed under the terms of the GNU GPL, version 2 or later. 7 * See the COPYING file in the top-level directory. 8 */ 9 10 #ifndef SYSEMU_CPU_OPS_H 11 #define SYSEMU_CPU_OPS_H 12 13 #include "hw/core/cpu.h" 14 15 /* 16 * struct SysemuCPUOps: System operations specific to a CPU class 17 */ 18 typedef struct SysemuCPUOps { 19 /** 20 * @virtio_is_big_endian: Callback to return %true if a CPU which supports 21 * runtime configurable endianness is currently big-endian. 22 * Non-configurable CPUs can use the default implementation of this method. 23 * This method should not be used by any callers other than the pre-1.0 24 * virtio devices. 25 */ 26 bool (*virtio_is_big_endian)(CPUState *cpu); 27 28 /** 29 * @legacy_vmsd: Legacy state for migration. 30 * Do not use in new targets, use #DeviceClass::vmsd instead. 31 */ 32 const VMStateDescription *legacy_vmsd; 33 34 } SysemuCPUOps; 35 36 #endif /* SYSEMU_CPU_OPS_H */ 37