From 51180423a226adbd80d64bf75b8522256b1266f1 Mon Sep 17 00:00:00 2001 From: Juan Quintela Date: Mon, 24 Apr 2017 20:50:19 +0200 Subject: exec: Create include for target_page_size() That is the only function that we need from exec.c, and having to include the whole sysemu.h for this. Signed-off-by: Juan Quintela Reviewed-by: Dr. David Alan Gilbert --- /me leans to be less sloppy with copyright notices thanks Dave --- include/exec/target_page.h | 19 +++++++++++++++++++ include/sysemu/sysemu.h | 1 - 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 include/exec/target_page.h (limited to 'include') diff --git a/include/exec/target_page.h b/include/exec/target_page.h new file mode 100644 index 0000000000..626eda8029 --- /dev/null +++ b/include/exec/target_page.h @@ -0,0 +1,19 @@ +/* + * Target page sizes and friends for non target files + * + * Copyright (c) 2017 Red Hat Inc + * + * Authors: + * David Alan Gilbert + * Juan Quintela + * + * This work is licensed under the terms of the GNU GPL, version 2 or later. + * See the COPYING file in the top-level directory. + */ + +#ifndef EXEC_TARGET_PAGE_H +#define EXEC_TARGET_PAGE_H + +size_t qemu_target_page_size(void); + +#endif diff --git a/include/sysemu/sysemu.h b/include/sysemu/sysemu.h index 765358ea45..ed8fe3bf34 100644 --- a/include/sysemu/sysemu.h +++ b/include/sysemu/sysemu.h @@ -67,7 +67,6 @@ int qemu_reset_requested_get(void); void qemu_system_killed(int signal, pid_t pid); void qemu_system_reset(bool report); void qemu_system_guest_panicked(GuestPanicInformation *info); -size_t qemu_target_page_size(void); void qemu_add_exit_notifier(Notifier *notify); void qemu_remove_exit_notifier(Notifier *notify); -- cgit v1.2.3-55-g7522