Remove inclusions of system headers and avoid "pragma once".
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
* License along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
-#pragma once
+#ifndef HVF_X86_H
+#define HVF_X86_H 1
-#include <sys/types.h>
-#include <sys/ioctl.h>
-#include <sys/mman.h>
-#include <stdarg.h>
-#include "qemu-common.h"
#include "x86_gen.h"
/* exceptions */
return tsc;
}
+#endif
*/
#include "qemu/osdep.h"
+#include "qemu-common.h"
#include "x86.h"
#include "vmx.h"
#include "sysemu/hvf.h"
#include "qemu/osdep.h"
+#include "qemu-common.h"
#include "x86_decode.h"
#include "string.h"
#include "vmx.h"
* License along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
-#pragma once
+#ifndef HVF_X86_DECODE_H
+#define HVF_X86_DECODE_H 1
-#include <sys/types.h>
-#include <sys/ioctl.h>
-#include <sys/mman.h>
-#include <stdarg.h>
-#include "qemu-common.h"
-#include "x86.h"
#include "cpu.h"
+#include "x86.h"
typedef enum x86_prefix {
/* group 1 */
struct x86_decode_op *op);
void set_addressing_size(CPUX86State *env, struct x86_decode *decode);
void set_operand_size(CPUX86State *env, struct x86_decode *decode);
+
+#endif
#include "qemu/osdep.h"
+#include "qemu-common.h"
#include "vmx.h"
#include "x86_descr.h"
* License along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
-#pragma once
+#ifndef HVF_X86_DESCR_H
+#define HVF_X86_DESCR_H 1
#include "x86.h"
void vmx_segment_to_x86_descriptor(struct CPUState *cpu,
struct vmx_segment *vmx_desc,
struct x86_segment_descriptor *desc);
+
+#endif
*/
#include "qemu/osdep.h"
-#include "qemu-common.h"
+#include "qemu-common.h"
#include "cpu.h"
#include "x86_flags.h"
#include "x86.h"
#ifndef __X86_GEN_H__
#define __X86_GEN_H__
-#include <stdlib.h>
-#include <stdio.h>
-#include "qemu-common.h"
-
typedef uint64_t addr_t;
#define VM_PANIC(x) {\
*/
#include "qemu/osdep.h"
-#include "qemu-common.h"
+#include "qemu-common.h"
#include "x86hvf.h"
#include "vmx.h"
#include "vmcs.h"