From 7e00772bda1a1c74fe659c56fea803642302c1da Mon Sep 17 00:00:00 2001 From: David Hashe Date: Mon, 20 Jul 2015 09:15:18 -0500 Subject: ruby: speed up function used for cache walks This patch adds a few helpful functions that allow .sm files to directly invalidate all cache blocks using a trigger queue rather than rely on each individual cache block to be invalidated via requests from the mandatory queue. --- src/mem/protocol/RubySlicc_Types.sm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/mem/protocol') diff --git a/src/mem/protocol/RubySlicc_Types.sm b/src/mem/protocol/RubySlicc_Types.sm index 88b9839bb..51f99b603 100644 --- a/src/mem/protocol/RubySlicc_Types.sm +++ b/src/mem/protocol/RubySlicc_Types.sm @@ -1,5 +1,6 @@ /* * Copyright (c) 1999-2005 Mark D. Hill and David A. Wood + * Copyright (c) 2013 Advanced Micro Devices, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -155,6 +156,10 @@ structure (CacheMemory, external = "yes") { void recordRequestType(CacheRequestType); bool checkResourceAvailable(CacheResourceType, Address); + int getCacheSize(); + int getNumBlocks(); + Address getAddressAtIdx(int); + Scalar demand_misses; Scalar demand_hits; } -- cgit v1.2.3