From: Tony Gutierrez Date: Thu, 10 Dec 2015 03:56:31 +0000 (-0500) Subject: mem: remove acq/rel cmds from packet and add mem fence req X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=413f3088eabf385507e854d74c0a5861e4d2856b;p=gem5.git mem: remove acq/rel cmds from packet and add mem fence req --- diff --git a/src/mem/packet.cc b/src/mem/packet.cc index c79deb680..78b32a25f 100644 --- a/src/mem/packet.cc +++ b/src/mem/packet.cc @@ -170,14 +170,10 @@ MemCmd::commandInfo[] = MessageResp, "MessageReq" }, /* IntResp -- for interrupts */ { SET2(IsWrite, IsResponse), InvalidCmd, "MessageResp" }, - /* ReleaseReq -- for release synchronization */ - { SET2(IsRequest, NeedsResponse), ReleaseResp, "ReleaseReq" }, - /* ReleaseResp -- for release synchronization */ - { SET1(IsResponse), InvalidCmd, "ReleaseResp" }, - /* AcquireReq -- for release synchronization */ - { SET2(IsRequest, NeedsResponse), AcquireResp, "AcquireReq" }, - /* AcquireResp -- for release synchronization */ - { SET2(IsResponse, NeedsResponse), InvalidCmd, "AcquireResp" }, + /* MemFenceReq -- for synchronization requests */ + {SET2(IsRequest, NeedsResponse), MemFenceResp, "MemFenceReq"}, + /* MemFenceResp -- for synchronization responses */ + {SET1(IsResponse), InvalidCmd, "MemFenceResp"}, /* InvalidDestError -- packet dest field invalid */ { SET2(IsResponse, IsError), InvalidCmd, "InvalidDestError" }, /* BadAddressError -- memory address invalid */ diff --git a/src/mem/packet.hh b/src/mem/packet.hh index d1c285f04..12295555d 100644 --- a/src/mem/packet.hh +++ b/src/mem/packet.hh @@ -111,10 +111,8 @@ class MemCmd SwapResp, MessageReq, MessageResp, - ReleaseReq, - ReleaseResp, - AcquireReq, - AcquireResp, + MemFenceReq, + MemFenceResp, // Error responses // @TODO these should be classified as responses rather than // requests; coding them as requests initially for backwards