syscall-emul: change NULL to nullptr in Process files
Change-Id: I9ff21092876593237f919e9f7fb7283bd865ba2e Reviewed-on: https://gem5-review.googlesource.com/2421 Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Maintainer: Brandon Potter <Brandon.Potter@amd.com>
This commit is contained in:
parent
48333e7e3f
commit
1991ff3bb2
2 changed files with 8 additions and 8 deletions
|
@ -151,7 +151,7 @@ Process::Process(ProcessParams * params, ObjectFile * obj_file)
|
||||||
!objFile->loadLocalSymbols(debugSymbolTable) ||
|
!objFile->loadLocalSymbols(debugSymbolTable) ||
|
||||||
!objFile->loadWeakSymbols(debugSymbolTable)) {
|
!objFile->loadWeakSymbols(debugSymbolTable)) {
|
||||||
delete debugSymbolTable;
|
delete debugSymbolTable;
|
||||||
debugSymbolTable = NULL;
|
debugSymbolTable = nullptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -259,7 +259,7 @@ Process::findFreeContext()
|
||||||
if (ThreadContext::Halted == it->status())
|
if (ThreadContext::Halted == it->status())
|
||||||
return it;
|
return it;
|
||||||
}
|
}
|
||||||
return NULL;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -406,7 +406,7 @@ Process::syscall(int64_t callnum, ThreadContext *tc, Fault *fault)
|
||||||
numSyscalls++;
|
numSyscalls++;
|
||||||
|
|
||||||
SyscallDesc *desc = getDesc(callnum);
|
SyscallDesc *desc = getDesc(callnum);
|
||||||
if (desc == NULL)
|
if (desc == nullptr)
|
||||||
fatal("Syscall %d out of range", callnum);
|
fatal("Syscall %d out of range", callnum);
|
||||||
|
|
||||||
desc->doSyscall(callnum, this, tc, fault);
|
desc->doSyscall(callnum, this, tc, fault);
|
||||||
|
@ -426,7 +426,7 @@ Process::findDriver(std::string filename)
|
||||||
return d;
|
return d;
|
||||||
}
|
}
|
||||||
|
|
||||||
return NULL;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -480,7 +480,7 @@ Process::getStartPC()
|
||||||
Process *
|
Process *
|
||||||
ProcessParams::create()
|
ProcessParams::create()
|
||||||
{
|
{
|
||||||
Process *process = NULL;
|
Process *process = nullptr;
|
||||||
|
|
||||||
// If not specified, set the executable parameter equal to the
|
// If not specified, set the executable parameter equal to the
|
||||||
// simulated system's zeroth command line parameter
|
// simulated system's zeroth command line parameter
|
||||||
|
@ -489,7 +489,7 @@ ProcessParams::create()
|
||||||
}
|
}
|
||||||
|
|
||||||
ObjectFile *obj_file = createObjectFile(executable);
|
ObjectFile *obj_file = createObjectFile(executable);
|
||||||
if (obj_file == NULL) {
|
if (obj_file == nullptr) {
|
||||||
fatal("Can't load object file %s", executable);
|
fatal("Can't load object file %s", executable);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -628,7 +628,7 @@ ProcessParams::create()
|
||||||
#error "THE_ISA not set"
|
#error "THE_ISA not set"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (process == NULL)
|
if (process == nullptr)
|
||||||
fatal("Unknown error creating process object.");
|
fatal("Unknown error creating process object.");
|
||||||
return process;
|
return process;
|
||||||
}
|
}
|
||||||
|
|
|
@ -98,7 +98,7 @@ class Process : public SimObject
|
||||||
* Find an emulated device driver.
|
* Find an emulated device driver.
|
||||||
*
|
*
|
||||||
* @param filename Name of the device (under /dev)
|
* @param filename Name of the device (under /dev)
|
||||||
* @return Pointer to driver object if found, else NULL
|
* @return Pointer to driver object if found, else nullptr
|
||||||
*/
|
*/
|
||||||
EmulatedDriver *findDriver(std::string filename);
|
EmulatedDriver *findDriver(std::string filename);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue