diff options
| author | Emilio G. Cota | 2020-06-12 21:02:26 +0200 |
|---|---|---|
| committer | Alex Bennée | 2020-06-16 15:49:05 +0200 |
| commit | 816d9be5ea31d848ee090eca4a2bf185bd609066 (patch) | |
| tree | 2783dc7a4bcac84b1f55a6e952b3c7115b5e22fb /include | |
| parent | thread: add qemu_spin_destroy (diff) | |
| download | qemu-816d9be5ea31d848ee090eca4a2bf185bd609066.tar.gz qemu-816d9be5ea31d848ee090eca4a2bf185bd609066.tar.xz qemu-816d9be5ea31d848ee090eca4a2bf185bd609066.zip | |
cputlb: destroy CPUTLB with tlb_destroy
I was after adding qemu_spin_destroy calls, but while at
it I noticed that we are leaking some memory.
Signed-off-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Robert Foley <robert.foley@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20200609200738.445-5-robert.foley@linaro.org>
Message-Id: <20200612190237.30436-8-alex.bennee@linaro.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/exec/exec-all.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h index 8792bea07a..3cf88272df 100644 --- a/include/exec/exec-all.h +++ b/include/exec/exec-all.h @@ -125,6 +125,11 @@ void cpu_address_space_init(CPUState *cpu, int asidx, */ void tlb_init(CPUState *cpu); /** + * tlb_destroy - destroy a CPU's TLB + * @cpu: CPU whose TLB should be destroyed + */ +void tlb_destroy(CPUState *cpu); +/** * tlb_flush_page: * @cpu: CPU whose TLB should be flushed * @addr: virtual address of page to be flushed @@ -284,6 +289,9 @@ void tlb_set_page(CPUState *cpu, target_ulong vaddr, static inline void tlb_init(CPUState *cpu) { } +static inline void tlb_destroy(CPUState *cpu) +{ +} static inline void tlb_flush_page(CPUState *cpu, target_ulong addr) { } |
