mem: remove acq/rel cmds from packet and add mem fence req

This commit is contained in:
Tony Gutierrez 2015-12-09 22:56:31 -05:00
parent 28d7e261ed
commit 413f3088ea
2 changed files with 6 additions and 12 deletions

View file

@ -170,14 +170,10 @@ MemCmd::commandInfo[] =
MessageResp, "MessageReq" }, MessageResp, "MessageReq" },
/* IntResp -- for interrupts */ /* IntResp -- for interrupts */
{ SET2(IsWrite, IsResponse), InvalidCmd, "MessageResp" }, { SET2(IsWrite, IsResponse), InvalidCmd, "MessageResp" },
/* ReleaseReq -- for release synchronization */ /* MemFenceReq -- for synchronization requests */
{ SET2(IsRequest, NeedsResponse), ReleaseResp, "ReleaseReq" }, {SET2(IsRequest, NeedsResponse), MemFenceResp, "MemFenceReq"},
/* ReleaseResp -- for release synchronization */ /* MemFenceResp -- for synchronization responses */
{ SET1(IsResponse), InvalidCmd, "ReleaseResp" }, {SET1(IsResponse), InvalidCmd, "MemFenceResp"},
/* AcquireReq -- for release synchronization */
{ SET2(IsRequest, NeedsResponse), AcquireResp, "AcquireReq" },
/* AcquireResp -- for release synchronization */
{ SET2(IsResponse, NeedsResponse), InvalidCmd, "AcquireResp" },
/* InvalidDestError -- packet dest field invalid */ /* InvalidDestError -- packet dest field invalid */
{ SET2(IsResponse, IsError), InvalidCmd, "InvalidDestError" }, { SET2(IsResponse, IsError), InvalidCmd, "InvalidDestError" },
/* BadAddressError -- memory address invalid */ /* BadAddressError -- memory address invalid */

View file

@ -111,10 +111,8 @@ class MemCmd
SwapResp, SwapResp,
MessageReq, MessageReq,
MessageResp, MessageResp,
ReleaseReq, MemFenceReq,
ReleaseResp, MemFenceResp,
AcquireReq,
AcquireResp,
// Error responses // Error responses
// @TODO these should be classified as responses rather than // @TODO these should be classified as responses rather than
// requests; coding them as requests initially for backwards // requests; coding them as requests initially for backwards