summaryrefslogtreecommitdiff
path: root/sim/main.cc
diff options
context:
space:
mode:
authorKevin Lim <ktlim@umich.edu>2005-02-22 16:03:30 -0500
committerKevin Lim <ktlim@umich.edu>2005-02-22 16:03:30 -0500
commite8a564b0fdd8c5b6ae8f73613e3ad25005556ec5 (patch)
treefe9cd45b453f15fb3d903572edc754489be04016 /sim/main.cc
parent79e83cea971bf346a5b0d6e88541e502a614c777 (diff)
parent884a8de50955422f3691496c19bf582c0f8f5e32 (diff)
downloadgem5-e8a564b0fdd8c5b6ae8f73613e3ad25005556ec5.tar.xz
Merge ktlim@zizzer.eecs.umich.edu:/bk/m5
into zamp.eecs.umich.edu:/z/ktlim2/m5 --HG-- extra : convert_revision : 8a558785c64b7c33e64523d3d887ea6e760c3d2b
Diffstat (limited to 'sim/main.cc')
-rw-r--r--sim/main.cc10
1 files changed, 3 insertions, 7 deletions
diff --git a/sim/main.cc b/sim/main.cc
index 1748294af..c15d24453 100644
--- a/sim/main.cc
+++ b/sim/main.cc
@@ -31,6 +31,8 @@
///
#include <sys/types.h>
#include <sys/stat.h>
+#include <errno.h>
+#include <libgen.h>
#include <stdlib.h>
#include <signal.h>
@@ -107,7 +109,7 @@ abortHandler(int sigtype)
}
/// Simulator executable name
-const char *myProgName = "";
+char *myProgName = "";
/// Show brief help message.
void
@@ -400,12 +402,6 @@ main(int argc, char **argv)
// Reset to put the stats in a consistent state.
Stats::reset();
- // Nothing to simulate if we don't have at least one CPU somewhere.
- if (BaseCPU::numSimulatedCPUs() == 0) {
- cerr << "Fatal: no CPUs to simulate." << endl;
- exit(1);
- }
-
warn("Entering event queue. Starting simulation...\n");
SimStartup();
while (!mainEventQueue.empty()) {