Will do. Thanks Nate.

On Thu, Jul 16, 2009 at 10:46 PM, nathan binkert <[email protected]> wrote:

> Polina,
>
> In general, please don't put unrelated changes into a single
> changeset.  Also, when you put together a commit message, Can you make
> the first line be a summary of the commit and subsequent lines go into
> more detail?  This is helpful when using tools such as "hg log" which
> by default just prints out the first line of each commit message so
> you can scroll through changes very quickly.  There are a lot of tools
> that work that way.
>
> (Sorry to be nitpicky)
>
> Thanks!
>
>  Nate
>
> On Thu, Jul 16, 2009 at 1:38 PM, <[email protected]> wrote:
> > changeset 79464d8a4d2f in /z/repo/m5
> > details: http://repo.m5sim.org/m5?cmd=changeset;node=79464d8a4d2f
> > description:
> >        1. Got rid of unused functions in DirectoryMemory
> >        2. Reintroduced RMW_Read and RMW_Write
> >        3. Defined -2 in the Sequencer as well as made a note about
> mandatory queue
> >
> >        Did not address the issues in the slicc because remaking the
> atomics altogether to allow
> >        multiple processors to issue atomic requests at once
> >
> > diffstat:
> >
> > 6 files changed, 31 insertions(+), 22 deletions(-)
> > src/mem/ruby/common/DataBlock.hh     |   18 ------------------
> > src/mem/ruby/libruby.cc              |    8 ++++++++
> > src/mem/ruby/libruby.hh              |    4 +++-
> > src/mem/ruby/recorder/TraceRecord.cc |    2 +-
> > src/mem/ruby/system/DMASequencer.cc  |    2 ++
> > src/mem/ruby/system/Sequencer.cc     |   19 +++++++++++++++++--
> >
> > diffs (170 lines):
> >
> > diff -r 390fefc98e2b -r 79464d8a4d2f src/mem/ruby/common/DataBlock.hh
> > --- a/src/mem/ruby/common/DataBlock.hh  Mon Jul 13 12:50:10 2009 -0500
> > +++ b/src/mem/ruby/common/DataBlock.hh  Mon Jul 13 17:22:29 2009 -0500
> > @@ -56,9 +56,6 @@
> >   uint8 getByte(int whichByte) const;
> >   const uint8* getData(int offset, int len) const;
> >   void setByte(int whichByte, uint8 data);
> > -  const uint8* getBlock() const;
> > -  uint8* copyData(uint8* dest, int offset, int size) const;
> > -  void setBlock(uint8* data) { setData(data, 0,
> RubySystem::getBlockSizeBytes()); }
> >   void setData(uint8* data, int offset, int len);
> >   void copyPartial(const DataBlock & dblk, int offset, int len);
> >   bool equal(const DataBlock& obj) const;
> > @@ -149,21 +146,6 @@
> >   setData(&dblk.m_data[offset], offset, len);
> >  }
> >
> > -inline
> > -const uint8* DataBlock::getBlock() const
> > -{
> > -  return m_data;
> > -}
> > -
> > -inline
> > -uint8* DataBlock::copyData(uint8* dest, int offset, int size) const
> > -{
> > -  assert(offset + size <= RubySystem::getBlockSizeBytes());
> > -  memcpy(dest, m_data + offset, size);
> > -  return dest;
> > -}
> > -
> > -
> >  // ******************* Definitions *******************
> >
> >  // Output operator definition
> > diff -r 390fefc98e2b -r 79464d8a4d2f src/mem/ruby/libruby.cc
> > --- a/src/mem/ruby/libruby.cc   Mon Jul 13 12:50:10 2009 -0500
> > +++ b/src/mem/ruby/libruby.cc   Mon Jul 13 17:22:29 2009 -0500
> > @@ -24,6 +24,10 @@
> >     return "Locked_Read";
> >   case RubyRequestType_Locked_Write:
> >     return "Locked_Write";
> > +  case RubyRequestType_RMW_Read:
> > +    return "RMW_Read";
> > +  case RubyRequestType_RMW_Write:
> > +    return "RMW_Write";
> >   case RubyRequestType_NULL:
> >   default:
> >     assert(0);
> > @@ -43,6 +47,10 @@
> >     return RubyRequestType_Locked_Read;
> >   else if (str == "Locked_Write")
> >     return RubyRequestType_Locked_Write;
> > +  else if (str == "RMW_Read")
> > +    return RubyRequestType_RMW_Read;
> > +  else if (str == "RMW_Write")
> > +    return RubyRequestType_RMW_Write;
> >   else
> >     assert(0);
> >   return RubyRequestType_NULL;
> > diff -r 390fefc98e2b -r 79464d8a4d2f src/mem/ruby/libruby.hh
> > --- a/src/mem/ruby/libruby.hh   Mon Jul 13 12:50:10 2009 -0500
> > +++ b/src/mem/ruby/libruby.hh   Mon Jul 13 17:22:29 2009 -0500
> > @@ -12,7 +12,9 @@
> >   RubyRequestType_LD,
> >   RubyRequestType_ST,
> >   RubyRequestType_Locked_Read,
> > -  RubyRequestType_Locked_Write
> > +  RubyRequestType_Locked_Write,
> > +  RubyRequestType_RMW_Read,
> > +  RubyRequestType_RMW_Write
> >  };
> >
> >  enum RubyAccessMode {
> > diff -r 390fefc98e2b -r 79464d8a4d2f src/mem/ruby/recorder/TraceRecord.cc
> > --- a/src/mem/ruby/recorder/TraceRecord.cc      Mon Jul 13 12:50:10 2009
> -0500
> > +++ b/src/mem/ruby/recorder/TraceRecord.cc      Mon Jul 13 17:22:29 2009
> -0500
> > @@ -50,7 +50,7 @@
> >   if (m_type == RubyRequestType_Locked_Read) {
> >     m_type = RubyRequestType_ST;
> >   }
> > -  if (m_type == RubyRequestType_Locked_Write) {
> > +  else if (m_type == RubyRequestType_Locked_Write) {
> >     m_type = RubyRequestType_ST;
> >   }
> >  }
> > diff -r 390fefc98e2b -r 79464d8a4d2f src/mem/ruby/system/DMASequencer.cc
> > --- a/src/mem/ruby/system/DMASequencer.cc       Mon Jul 13 12:50:10 2009
> -0500
> > +++ b/src/mem/ruby/system/DMASequencer.cc       Mon Jul 13 17:22:29 2009
> -0500
> > @@ -48,6 +48,8 @@
> >   case RubyRequestType_IFETCH:
> >   case RubyRequestType_Locked_Read:
> >   case RubyRequestType_Locked_Write:
> > +  case RubyRequestType_RMW_Read:
> > +  case RubyRequestType_RMW_Write:
> >     assert(0);
> >   }
> >
> > diff -r 390fefc98e2b -r 79464d8a4d2f src/mem/ruby/system/Sequencer.cc
> > --- a/src/mem/ruby/system/Sequencer.cc  Mon Jul 13 12:50:10 2009 -0500
> > +++ b/src/mem/ruby/system/Sequencer.cc  Mon Jul 13 17:22:29 2009 -0500
> > @@ -43,6 +43,8 @@
> >
> >  //Sequencer::Sequencer(int core_id, MessageBuffer* mandatory_q)
> >
> > +#define LLSC_FAIL -2
> > +
> >  Sequencer::Sequencer(const string & name)
> >   :RubyPort(name)
> >  {
> > @@ -201,6 +203,8 @@
> >   Address line_addr(request->ruby_request.paddr);
> >   line_addr.makeLineAddress();
> >   if ((request->ruby_request.type == RubyRequestType_ST) ||
> > +      (request->ruby_request.type == RubyRequestType_RMW_Read) ||
> > +      (request->ruby_request.type == RubyRequestType_RMW_Write) ||
> >       (request->ruby_request.type == RubyRequestType_Locked_Read) ||
> >       (request->ruby_request.type == RubyRequestType_Locked_Write)) {
> >     if (m_writeRequestTable.exist(line_addr)) {
> > @@ -238,6 +242,8 @@
> >   Address line_addr(ruby_request.paddr);
> >   line_addr.makeLineAddress();
> >   if ((ruby_request.type == RubyRequestType_ST) ||
> > +      (ruby_request.type == RubyRequestType_RMW_Read) ||
> > +      (ruby_request.type == RubyRequestType_RMW_Write) ||
> >       (ruby_request.type == RubyRequestType_Locked_Read) ||
> >       (ruby_request.type == RubyRequestType_Locked_Write)) {
> >     m_writeRequestTable.deallocate(line_addr);
> > @@ -258,6 +264,8 @@
> >   removeRequest(request);
> >
> >   assert((request->ruby_request.type == RubyRequestType_ST) ||
> > +         (request->ruby_request.type == RubyRequestType_RMW_Read) ||
> > +         (request->ruby_request.type == RubyRequestType_RMW_Write) ||
> >          (request->ruby_request.type == RubyRequestType_Locked_Read) ||
> >          (request->ruby_request.type == RubyRequestType_Locked_Write));
> >   // POLINA: the assumption is that atomics are only on data cache and
> not instruction cache
> > @@ -355,7 +363,6 @@
> >  }
> >
> >
> > -// -2 means that the LLSC failed
> >  int64_t Sequencer::makeRequest(const RubyRequest & request)
> >  {
> >   assert(Address(request.paddr).getOffset() + request.len <=
> RubySystem::getBlockSizeBytes());
> > @@ -365,8 +372,10 @@
> >     bool found = insertRequest(srequest);
> >     if (!found)
> >       if (request.type == RubyRequestType_Locked_Write) {
> > +        // NOTE: it is OK to check the locked flag here as the mandatory
> queue will be checked first
> > +        // ensuring that nothing comes between checking the flag and
> servicing the store
> >         if
> (!m_dataCache_ptr->isLocked(line_address(Address(request.paddr)),
> m_version)) {
> > -          return -2;
> > +          return LLSC_FAIL;
> >         }
> >         else {
> >
> m_dataCache_ptr->clearLocked(line_address(Address(request.paddr)));
> > @@ -402,6 +411,12 @@
> >   case RubyRequestType_Locked_Write:
> >     ctype = CacheRequestType_ST;
> >     break;
> > +  case RubyRequestType_RMW_Read:
> > +    ctype = CacheRequestType_ATOMIC;
> > +    break;
> > +  case RubyRequestType_RMW_Write:
> > +    ctype = CacheRequestType_ATOMIC;
> > +    break;
> >   default:
> >     assert(0);
> >   }
> > _______________________________________________
> > m5-dev mailing list
> > [email protected]
> > http://m5sim.org/mailman/listinfo/m5-dev
> >
> >
> _______________________________________________
> m5-dev mailing list
> [email protected]
> http://m5sim.org/mailman/listinfo/m5-dev
>
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to