From 53e777d6838ac3ca80e6557626f9e99fd93dd0f7 Mon Sep 17 00:00:00 2001 From: Andreas Sandberg Date: Fri, 7 Aug 2015 09:59:13 +0100 Subject: base: Declare a type for context IDs Context IDs used to be declared as ad hoc (usually as int). This changeset introduces a typedef for ContextIDs and a constant for invalid context IDs. --- src/mem/abstract_mem.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mem/abstract_mem.hh') diff --git a/src/mem/abstract_mem.hh b/src/mem/abstract_mem.hh index 4b7ad8139..6dbc79ea0 100644 --- a/src/mem/abstract_mem.hh +++ b/src/mem/abstract_mem.hh @@ -74,7 +74,7 @@ class LockedAddr { Addr addr; // locking hw context - const int contextId; + const ContextID contextId; static Addr mask(Addr paddr) { return (paddr & ~Addr_Mask); } -- cgit v1.2.3