diff -r c8103649c810 -r 49916100d2f0 src/mem/packet.hh --- a/src/mem/packet.hh Mon Jan 10 11:44:25 2011 -0800 +++ b/src/mem/packet.hh Mon Jan 10 11:44:25 2011 -0800 @@ -768,6 +768,12 @@ data = new uint8_t[getSize()]; } + /** Identifies whether static or dynamic data has been allocated. */ + bool + hasData() + { + return flags.isSet(STATIC_DATA|DYNAMIC_DATA); + } /** * Check a functional request against a memory value represented