From 67bb3070032fcb944a63aabb4ecfff692840e7bf Mon Sep 17 00:00:00 2001 From: Nilay Vaish Date: Wed, 8 Jun 2011 11:58:09 -0500 Subject: Ruby: Correctly set access permissions for directory entries The access permissions for the directory entries are not being set correctly. This is because pointers are not used for handling directory entries. function. get and set functions for access permissions have been added to the Controller state machine. The changePermission() function provided by the AbstractEntry and AbstractCacheEntry classes has been exposed to SLICC code once again. The set_permission() functionality has been removed. NOTE: Each protocol will have to define these get and set functions in order to compile successfully. --- src/mem/protocol/Network_test-cache.sm | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/mem/protocol/Network_test-cache.sm') diff --git a/src/mem/protocol/Network_test-cache.sm b/src/mem/protocol/Network_test-cache.sm index e76c002f5..b97819ca3 100644 --- a/src/mem/protocol/Network_test-cache.sm +++ b/src/mem/protocol/Network_test-cache.sm @@ -120,6 +120,13 @@ machine(L1Cache, "Network_test L1 Cache") } + AccessPermission getAccessPermission(Address addr) { + return AccessPermission:NotPresent; + } + + void setAccessPermission(Entry cache_entry, Address addr, State state) { + } + Entry getCacheEntry(Address address), return_by_pointer="yes" { return OOD; } -- cgit v1.2.3