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.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user