42 std::string gem5_cwd = getcwd(buf, PATH_MAX);
45 path = realpath((gem5_cwd +
"/" + path).c_str(), buf);
47 if (path[path.length()-1] !=
'/') path.push_back(
'/');
57 for (
auto hp :
p.host_paths) {
std::string _appPath
An appPath is a path which needs to be redirected and replaced by one of the corresponding hostPath (...
std::vector< std::string > _hostPaths
RedirectPath(const RedirectPathParams &p)
Abstract superclass for simulation objects.
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
bool startswith(const char *s, const char *prefix)
Return true if 's' starts with the prefix string 'prefix'.
static std::string normalizePath(std::string path)