aboutsummaryrefslogtreecommitdiff
path: root/include/exec
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2022-08-19 17:02:36 -0700
committerRichard Henderson <richard.henderson@linaro.org>2022-10-03 20:53:31 -0700
commit8c6953cf034cec0998815961e5ec70c9de15da6e (patch)
treefdc8479714f35c9deb3f70d75430d255205abfe0 /include/exec
parent4047368938f64e2b79103c6e6358b06570b237e5 (diff)
downloadqemu-8c6953cf034cec0998815961e5ec70c9de15da6e.zip
qemu-8c6953cf034cec0998815961e5ec70c9de15da6e.tar.gz
qemu-8c6953cf034cec0998815961e5ec70c9de15da6e.tar.bz2
include/exec: Introduce TARGET_PAGE_ENTRY_EXTRA
Allow the target to cache items from the guest page tables. Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include/exec')
-rw-r--r--include/exec/cpu-defs.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/exec/cpu-defs.h b/include/exec/cpu-defs.h
index 5e12cc1..67239b4 100644
--- a/include/exec/cpu-defs.h
+++ b/include/exec/cpu-defs.h
@@ -163,6 +163,15 @@ typedef struct CPUTLBEntryFull {
/* @lg_page_size contains the log2 of the page size. */
uint8_t lg_page_size;
+
+ /*
+ * Allow target-specific additions to this structure.
+ * This may be used to cache items from the guest cpu
+ * page tables for later use by the implementation.
+ */
+#ifdef TARGET_PAGE_ENTRY_EXTRA
+ TARGET_PAGE_ENTRY_EXTRA
+#endif
} CPUTLBEntryFull;
/*