From b289966a7817487d05bdf9722786a1216032978a Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Sat, 16 Oct 2010 00:00:54 -0700 Subject: Mem: Reclaim some request flags used by MIPS for alignment checking. These flags were being used to identify what alignment a request needed, but the same information is available using the request size. This change also eliminates the isMisaligned function. If more complicated alignment checks are needed, they can be signaled using the ASI_BITS space in the flags vector like is currently done with ARM. --- src/mem/request.hh | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'src/mem/request.hh') diff --git a/src/mem/request.hh b/src/mem/request.hh index 45551dd03..38daea266 100644 --- a/src/mem/request.hh +++ b/src/mem/request.hh @@ -74,10 +74,6 @@ class Request : public FastAlloc /** This request is a clear exclusive. */ static const FlagsType CLEAR_LL = 0x00004000; - /** The request should ignore unaligned access faults */ - static const FlagsType NO_ALIGN_FAULT = 0x00020000; - /** The request should ignore unaligned access faults */ - static const FlagsType NO_HALF_WORD_ALIGN_FAULT = 0x00040000; /** The request should not cause a memory access. */ static const FlagsType NO_ACCESS = 0x00080000; /** This request will lock or unlock the accessed memory. When used with @@ -459,24 +455,6 @@ class Request : public FastAlloc bool isCondSwap() const { return _flags.isSet(MEM_SWAP_COND); } bool isMmapedIpr() const { return _flags.isSet(MMAPED_IPR); } bool isClearLL() const { return _flags.isSet(CLEAR_LL); } - - bool - isMisaligned() const - { - if (_flags.isSet(NO_ALIGN_FAULT)) - return false; - - if ((_vaddr & 0x1)) - return true; - - if (_flags.isSet(NO_HALF_WORD_ALIGN_FAULT)) - return false; - - if ((_vaddr & 0x2)) - return true; - - return false; - } }; #endif // __MEM_REQUEST_HH__ -- cgit v1.2.3