From 1d5233958ad208e3b229e394ba5ab689b82d8cac Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Wed, 2 Jun 2010 12:58:10 -0500 Subject: ARM: Implement the V7 version of alignment checking. --- src/arch/arm/tlb.hh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/arch/arm/tlb.hh') diff --git a/src/arch/arm/tlb.hh b/src/arch/arm/tlb.hh index d2c035b31..d6fe981b9 100644 --- a/src/arch/arm/tlb.hh +++ b/src/arch/arm/tlb.hh @@ -86,6 +86,21 @@ struct TlbEntry class TLB : public BaseTLB { + public: + enum ArmFlags { + AlignmentMask = 0x7, + + AlignByte = 0x0, + AlignHalfWord = 0x1, + AlignWord = 0x3, + AlignDoubleWord = 0x7, + + AllowUnaligned = 0x8, + // Because zero otherwise looks like a valid setting and may be used + // accidentally, this bit must be non-zero to show it was used on + // purpose. + MustBeOne = 0x10 + }; protected: typedef std::multimap PageTable; PageTable lookupTable; // Quick lookup into page table -- cgit v1.2.3