diff options
| author | Richard Henderson | 2019-03-22 16:36:40 +0100 |
|---|---|---|
| committer | Richard Henderson | 2019-06-10 16:03:34 +0200 |
| commit | 79e4208506651660b866f536616a5f8f3175f909 (patch) | |
| tree | 83857e3ecb5922c36c1ff51cec659ce40e878676 /include | |
| parent | Merge remote-tracking branch 'remotes/kraxel/tags/usb-20190607-pull-request' ... (diff) | |
| download | qemu-79e4208506651660b866f536616a5f8f3175f909.tar.gz qemu-79e4208506651660b866f536616a5f8f3175f909.tar.xz qemu-79e4208506651660b866f536616a5f8f3175f909.zip | |
tcg: Fold CPUTLBWindow into CPUTLBDesc
Both structures are allocated once per mmu_idx.
There is no reason for them to be separate.
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/exec/cpu-defs.h | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/include/exec/cpu-defs.h b/include/exec/cpu-defs.h index 8f2a848bf5..52d150aaf1 100644 --- a/include/exec/cpu-defs.h +++ b/include/exec/cpu-defs.h @@ -127,18 +127,6 @@ typedef struct CPUIOTLBEntry { MemTxAttrs attrs; } CPUIOTLBEntry; -/** - * struct CPUTLBWindow - * @begin_ns: host time (in ns) at the beginning of the time window - * @max_entries: maximum number of entries observed in the window - * - * See also: tlb_mmu_resize_locked() - */ -typedef struct CPUTLBWindow { - int64_t begin_ns; - size_t max_entries; -} CPUTLBWindow; - typedef struct CPUTLBDesc { /* * Describe a region covering all of the large pages allocated @@ -148,9 +136,12 @@ typedef struct CPUTLBDesc { */ target_ulong large_page_addr; target_ulong large_page_mask; + /* host time (in ns) at the beginning of the time window */ + int64_t window_begin_ns; + /* maximum number of entries observed in the window */ + size_t window_max_entries; /* The next index to use in the tlb victim table. */ size_t vindex; - CPUTLBWindow window; size_t n_used_entries; } CPUTLBDesc; |
