[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 09/20] include/exec: Introduce TARGET_PAGE_ENTRY_EXTRA
From: |
Richard Henderson |
Subject: |
[PULL 09/20] include/exec: Introduce TARGET_PAGE_ENTRY_EXTRA |
Date: |
Tue, 4 Oct 2022 12:52:30 -0700 |
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>
---
include/exec/cpu-defs.h | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/include/exec/cpu-defs.h b/include/exec/cpu-defs.h
index 5e12cc1854..67239b4e5e 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;
/*
--
2.34.1
- [PULL 00/20] tcg patch queue, Richard Henderson, 2022/10/04
- [PULL 05/20] accel/tcg: Drop addr member from SavedIOTLB, Richard Henderson, 2022/10/04
- [PULL 03/20] cputlb: used cached CPUClass in our hot-paths, Richard Henderson, 2022/10/04
- [PULL 04/20] accel/tcg: Rename CPUIOTLBEntry to CPUTLBEntryFull, Richard Henderson, 2022/10/04
- [PULL 07/20] accel/tcg: Introduce probe_access_full, Richard Henderson, 2022/10/04
- [PULL 08/20] accel/tcg: Introduce tlb_set_page_full, Richard Henderson, 2022/10/04
- [PULL 02/20] hw/core/cpu-sysemu: used cached class in cpu_asidx_from_attrs, Richard Henderson, 2022/10/04
- [PULL 06/20] accel/tcg: Suppress auto-invalidate in probe_access_internal, Richard Henderson, 2022/10/04
- [PULL 11/20] accel/tcg: Use bool for page_find_alloc, Richard Henderson, 2022/10/04
- [PULL 01/20] cpu: cache CPUClass in CPUState for hot code paths, Richard Henderson, 2022/10/04
- [PULL 09/20] include/exec: Introduce TARGET_PAGE_ENTRY_EXTRA,
Richard Henderson <=
- [PULL 10/20] accel/tcg: Remove PageDesc code_bitmap, Richard Henderson, 2022/10/04
- [PULL 12/20] accel/tcg: Use DisasContextBase in plugin_gen_tb_start, Richard Henderson, 2022/10/04
- [PULL 13/20] accel/tcg: Do not align tb->page_addr[0], Richard Henderson, 2022/10/04
- [PULL 14/20] accel/tcg: Inline tb_flush_jmp_cache, Richard Henderson, 2022/10/04
- [PULL 18/20] accel/tcg: Introduce TARGET_TB_PCREL, Richard Henderson, 2022/10/04
- [PULL 15/20] include/hw/core: Create struct CPUJumpCache, Richard Henderson, 2022/10/04