summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZicong Wang <wangzicong@nudt.edu.cn>2019-01-13 17:46:29 +0800
committerZicong Wang <wangzicong@nudt.edu.cn>2019-01-23 00:31:11 +0000
commit964e610ba0e141333510e0427937560d3376a8c0 (patch)
treedd34f4453645d8ac6dd4dc2847a2d77143043745
parent1ab1500dfd0cb64b2fef7fb5e0f9e1fa007d2481 (diff)
downloadgem5-964e610ba0e141333510e0427937560d3376a8c0.tar.xz
mem-ruby: Fix missing TBE allocation and deallocation
The TBE allocation and deallcation are currently missing during the directory state transition from I to M in protocol MI_example. Change-Id: If7569c02faf56ea84c34ee1345f1a33d318cdfff Signed-off-by: Zicong Wang <wangzicong@nudt.edu.cn> Reviewed-on: https://gem5-review.googlesource.com/c/15535 Reviewed-by: Pouya Fotouhi <pfotouhi@ucdavis.edu> Maintainer: Jason Lowe-Power <jason@lowepower.com>
-rw-r--r--src/mem/protocol/MI_example-dir.sm2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mem/protocol/MI_example-dir.sm b/src/mem/protocol/MI_example-dir.sm
index e2d834201..e9f652152 100644
--- a/src/mem/protocol/MI_example-dir.sm
+++ b/src/mem/protocol/MI_example-dir.sm
@@ -498,6 +498,7 @@ machine(MachineType:Directory, "Directory protocol")
transition(I, GETX, IM) {
//d_sendData;
+ v_allocateTBEFromRequestNet;
qf_queueMemoryFetchRequest;
e_ownerIsRequestor;
i_popIncomingRequestQueue;
@@ -506,6 +507,7 @@ machine(MachineType:Directory, "Directory protocol")
transition(IM, Memory_Data, M) {
d_sendData;
//e_ownerIsRequestor;
+ w_deallocateTBE;
l_popMemQueue;
}