From c6cca14b745321d38b13472619fe6824bfa200e0 Mon Sep 17 00:00:00 2001 From: Giacomo Travaglini Date: Mon, 15 Jul 2024 18:57:33 +0100 Subject: [PATCH] arch-arm: Add invalidate method to the TlbEntry This is needed for compliance with the AssociativeCache container. It will call the invalidate method when invalidating the TLB entry Change-Id: Idb1bc40b5aea8c475146700c81ab79d9980f745d Signed-off-by: Giacomo Travaglini Reviewed-by: Andreas Sandberg --- src/arch/arm/pagetable.hh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/arch/arm/pagetable.hh b/src/arch/arm/pagetable.hh index c4b9bc97da..31eb890049 100644 --- a/src/arch/arm/pagetable.hh +++ b/src/arch/arm/pagetable.hh @@ -351,6 +351,13 @@ struct TlbEntry : public ReplaceableEntry, Serializable std::swap(xs, rhs.xs); } + /** Need for compliance with the AssociativeCache interface */ + void + invalidate() + { + valid = false; + } + void updateVaddr(Addr new_vaddr) {