37 std::string gem5_cwd = getcwd(buf, PATH_MAX);
40 path = realpath((gem5_cwd +
"/" + path).c_str(), buf);
42 if (path[path.length()-1] !=
'/') path.push_back(
'/');
52 for (
auto hp : p->host_paths) {
58 RedirectPathParams::create()
static std::string normalizePath(std::string path)
std::string _appPath
An appPath is a path which needs to be redirected and replaced by one of the corresponding hostPath (...
bool startswith(const char *s, const char *prefix)
Return true if 's' starts with the prefix string 'prefix'.
RedirectPath stores a mapping from one 'appPath' to a vector of 'hostPath'.
std::vector< std::string > _hostPaths
Abstract superclass for simulation objects.
RedirectPath(const RedirectPathParams *p)