From: Giacomo Travaglini Date: Mon, 22 Jul 2019 14:06:40 +0000 (+0100) Subject: dev-arm: Use override keyword for SMMUv3 PTOPS X-Git-Tag: v19.0.0.0~720 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=36da743e0b934c853cab41e5254e1ba2e93f157d;p=gem5.git dev-arm: Use override keyword for SMMUv3 PTOPS Replacing the "virtual" keyword Change-Id: I0e7b4b683ea222827a67c3a81f0deea0e906c7e5 Signed-off-by: Giacomo Travaglini Reviewed-by: Michiel Van Tol Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/19629 Reviewed-by: Andreas Sandberg Maintainer: Andreas Sandberg Tested-by: kokoro --- diff --git a/src/dev/arm/smmu_v3_ptops.hh b/src/dev/arm/smmu_v3_ptops.hh index 1b8c22c4d..8680541c6 100644 --- a/src/dev/arm/smmu_v3_ptops.hh +++ b/src/dev/arm/smmu_v3_ptops.hh @@ -61,54 +61,54 @@ struct PageTableOps struct V7LPageTableOps : public PageTableOps { - virtual bool isValid(pte_t pte, unsigned level) const; - virtual bool isLeaf(pte_t pte, unsigned level) const; - virtual bool isWritable(pte_t pte, unsigned level, bool stage2) const; - virtual Addr nextLevelPointer(pte_t pte, unsigned level) const; - virtual Addr index(Addr va, unsigned level) const; - virtual Addr pageMask(pte_t pte, unsigned level) const; - virtual Addr walkMask(unsigned level) const; - virtual unsigned firstLevel() const; - virtual unsigned lastLevel() const; + bool isValid(pte_t pte, unsigned level) const override; + bool isLeaf(pte_t pte, unsigned level) const override; + bool isWritable(pte_t pte, unsigned level, bool stage2) const override; + Addr nextLevelPointer(pte_t pte, unsigned level) const override; + Addr index(Addr va, unsigned level) const override; + Addr pageMask(pte_t pte, unsigned level) const override; + Addr walkMask(unsigned level) const override; + unsigned firstLevel() const override; + unsigned lastLevel() const override; }; struct V8PageTableOps4k : public PageTableOps { - virtual bool isValid(pte_t pte, unsigned level) const; - virtual bool isLeaf(pte_t pte, unsigned level) const; - virtual bool isWritable(pte_t pte, unsigned level, bool stage2) const; - virtual Addr nextLevelPointer(pte_t pte, unsigned level) const; - virtual Addr index(Addr va, unsigned level) const; - virtual Addr pageMask(pte_t pte, unsigned level) const; - virtual Addr walkMask(unsigned level) const; - virtual unsigned firstLevel() const; - virtual unsigned lastLevel() const; + bool isValid(pte_t pte, unsigned level) const override; + bool isLeaf(pte_t pte, unsigned level) const override; + bool isWritable(pte_t pte, unsigned level, bool stage2) const override; + Addr nextLevelPointer(pte_t pte, unsigned level) const override; + Addr index(Addr va, unsigned level) const override; + Addr pageMask(pte_t pte, unsigned level) const override; + Addr walkMask(unsigned level) const override; + unsigned firstLevel() const override; + unsigned lastLevel() const override; }; struct V8PageTableOps16k : public PageTableOps { - virtual bool isValid(pte_t pte, unsigned level) const; - virtual bool isLeaf(pte_t pte, unsigned level) const; - virtual bool isWritable(pte_t pte, unsigned level, bool stage2) const; - virtual Addr nextLevelPointer(pte_t pte, unsigned level) const; - virtual Addr index(Addr va, unsigned level) const; - virtual Addr pageMask(pte_t pte, unsigned level) const; - virtual Addr walkMask(unsigned level) const; - virtual unsigned firstLevel() const; - virtual unsigned lastLevel() const; + bool isValid(pte_t pte, unsigned level) const override; + bool isLeaf(pte_t pte, unsigned level) const override; + bool isWritable(pte_t pte, unsigned level, bool stage2) const override; + Addr nextLevelPointer(pte_t pte, unsigned level) const override; + Addr index(Addr va, unsigned level) const override; + Addr pageMask(pte_t pte, unsigned level) const override; + Addr walkMask(unsigned level) const override; + unsigned firstLevel() const override; + unsigned lastLevel() const override; }; struct V8PageTableOps64k : public PageTableOps { - virtual bool isValid(pte_t pte, unsigned level) const; - virtual bool isLeaf(pte_t pte, unsigned level) const; - virtual bool isWritable(pte_t pte, unsigned level, bool stage2) const; - virtual Addr nextLevelPointer(pte_t pte, unsigned level) const; - virtual Addr index(Addr va, unsigned level) const; - virtual Addr pageMask(pte_t pte, unsigned level) const; - virtual Addr walkMask(unsigned level) const; - virtual unsigned firstLevel() const; - virtual unsigned lastLevel() const; + bool isValid(pte_t pte, unsigned level) const override; + bool isLeaf(pte_t pte, unsigned level) const override; + bool isWritable(pte_t pte, unsigned level, bool stage2) const override; + Addr nextLevelPointer(pte_t pte, unsigned level) const override; + Addr index(Addr va, unsigned level) const override; + Addr pageMask(pte_t pte, unsigned level) const override; + Addr walkMask(unsigned level) const override; + unsigned firstLevel() const override; + unsigned lastLevel() const override; }; #endif /* __DEV_ARM_SMMU_V3_PTOPS_HH__ */