From fe530648d50a4b87e808691d96a1fcfec89145e3 Mon Sep 17 00:00:00 2001 From: Steve Reinhardt Date: Fri, 18 Jul 2014 22:05:51 -0700 Subject: [PATCH] sim: remove unused MemoryModeStrings array The System object has a static MemoryModeStrings array that's (1) unused and (2) redundant, since there's an auto-generated version in the Enums namespace. No point in leaving it in. --- src/sim/system.cc | 3 --- src/sim/system.hh | 2 -- 2 files changed, 5 deletions(-) diff --git a/src/sim/system.cc b/src/sim/system.cc index e2bf0a3d2..88d2a1625 100644 --- a/src/sim/system.cc +++ b/src/sim/system.cc @@ -462,9 +462,6 @@ System::getMasterName(MasterID master_id) return masterIds[master_id]; } -const char *System::MemoryModeStrings[4] = {"invalid", "atomic", "timing", - "atomic_noncaching"}; - System * SystemParams::create() { diff --git a/src/sim/system.hh b/src/sim/system.hh index ecef2c4f2..5b68373a6 100644 --- a/src/sim/system.hh +++ b/src/sim/system.hh @@ -121,8 +121,6 @@ class System : public MemObject BaseMasterPort& getMasterPort(const std::string &if_name, PortID idx = InvalidPortID); - static const char *MemoryModeStrings[4]; - /** @{ */ /** * Is the system in atomic mode? -- 2.30.2