summaryrefslogtreecommitdiff
path: root/include/exec/target_page.h
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2017-04-24 20:50:19 +0200
committerJuan Quintela <quintela@redhat.com>2017-05-18 19:20:59 +0200
commit51180423a226adbd80d64bf75b8522256b1266f1 (patch)
treee7967c0784c46f80c5edd4535fd0c9516b690233 /include/exec/target_page.h
parent68ba3b07436396733f7313c81956410af6d17083 (diff)
downloadqemu-51180423a226adbd80d64bf75b8522256b1266f1.tar.gz
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 <quintela@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> --- /me leans to be less sloppy with copyright notices thanks Dave
Diffstat (limited to 'include/exec/target_page.h')
-rw-r--r--include/exec/target_page.h19
1 files changed, 19 insertions, 0 deletions
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 <dgilbert@redhat.com>
+ * Juan Quintela <quintela@redhat.com>
+ *
+ * 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