summaryrefslogtreecommitdiff
path: root/src/cpu/inorder/cpu.cc
diff options
context:
space:
mode:
authorSteve Reinhardt <steve.reinhardt@amd.com>2012-08-06 16:55:34 -0700
committerSteve Reinhardt <steve.reinhardt@amd.com>2012-08-06 16:55:34 -0700
commit73ef8bd168795855cd23e56dd6739dfa23a77eb8 (patch)
treedfe826d6863ba57fbb5b05beba8e1db210f48efc /src/cpu/inorder/cpu.cc
parente232152db6d9cd511a75c41f47b00befe9b7719e (diff)
downloadgem5-73ef8bd168795855cd23e56dd6739dfa23a77eb8.tar.xz
process: add progName() virtual function
This replaces a (potentially uninitialized) string field with a virtual function so that we can have a safe interface without requiring changes to the eio code.
Diffstat (limited to 'src/cpu/inorder/cpu.cc')
-rw-r--r--src/cpu/inorder/cpu.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpu/inorder/cpu.cc b/src/cpu/inorder/cpu.cc
index f67691d0a..4aff0c579 100644
--- a/src/cpu/inorder/cpu.cc
+++ b/src/cpu/inorder/cpu.cc
@@ -290,7 +290,7 @@ InOrderCPU::InOrderCPU(Params *params)
} else {
if (tid < (ThreadID)params->workload.size()) {
DPRINTF(InOrderCPU, "Workload[%i] process is %#x\n",
- tid, params->workload[tid]->prog_fname);
+ tid, params->workload[tid]->progName());
thread[tid] =
new Thread(this, tid, params->workload[tid]);
} else {