From 413f3088eabf385507e854d74c0a5861e4d2856b Mon Sep 17 00:00:00 2001 From: Tony Gutierrez Date: Wed, 9 Dec 2015 22:56:31 -0500 Subject: [PATCH] mem: remove acq/rel cmds from packet and add mem fence req --- src/mem/packet.cc | 12 ++++-------- src/mem/packet.hh | 6 ++---- 2 files changed, 6 insertions(+), 12 deletions(-) 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 -- 2.30.2