From 2ab51fbcdb1d26d635875174eb23f60d6f9dc6bb Mon Sep 17 00:00:00 2001 From: Andrew Schultz Date: Fri, 31 Oct 2003 17:32:04 -0500 Subject: Changed the naming of Serializeable derived objects. Serializeable no longer has objName as a member, instead it has the pure virtual function name(). SimObject now has a objName member, and all classes derived directly from Serializeable have to implement a name() function (which now makes them unique by pointer value) cpu/simple_cpu/simple_cpu.cc: Change initialization of Event to get rid of Serializeable naming dev/etherlink.cc: dev/etherlink.hh: Seralizeable derived naming changes sim/eventq.cc: Serializeable derived naming changes, also changed serialization process so it doesn't need to use nameChildren sim/eventq.hh: Serializeable derived naming changes, remove constructor for specifying event name sim/serialize.cc: Serializeable derived naming changes, remove setName function and the child naming pass for serialization sim/serialize.hh: Serializeable derived naming changes, removed nameChildren, setName sim/sim_object.cc: sim/sim_object.hh: Serializeable derived naming changes --HG-- extra : convert_revision : 67bcc275b6c210f7049f98a1ad0d22e8f5596a63 --- cpu/simple_cpu/simple_cpu.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpu/simple_cpu/simple_cpu.cc') diff --git a/cpu/simple_cpu/simple_cpu.cc b/cpu/simple_cpu/simple_cpu.cc index 519a8cd4d..60d704604 100644 --- a/cpu/simple_cpu/simple_cpu.cc +++ b/cpu/simple_cpu/simple_cpu.cc @@ -76,7 +76,7 @@ using namespace std; SimpleCPU::TickEvent::TickEvent(SimpleCPU *c) - : Event(&mainEventQueue, "SimpleCPU::TickEvent", 100), cpu(c) + : Event(&mainEventQueue, 100), cpu(c) { } @@ -94,7 +94,7 @@ SimpleCPU::TickEvent::description() SimpleCPU::CacheCompletionEvent::CacheCompletionEvent(SimpleCPU *_cpu) - : Event(&mainEventQueue, "SimpleCPU::CacheCompletionEvent"), + : Event(&mainEventQueue), cpu(_cpu) { } -- cgit v1.2.3