diff options
Diffstat (limited to 'src/kern/linux/linux.cc')
-rw-r--r-- | src/kern/linux/linux.cc | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/kern/linux/linux.cc b/src/kern/linux/linux.cc index b71ab3079..e499776dc 100644 --- a/src/kern/linux/linux.cc +++ b/src/kern/linux/linux.cc @@ -55,9 +55,6 @@ Linux::openSpecialFile(std::string path, Process *process, } else if (path.compare(0, 11, "/etc/passwd") == 0) { data = Linux::etcPasswd(process, tc); matched = true; - } else if (path.compare(0, 30, "/sys/devices/system/cpu/online") == 0) { - data = Linux::cpuOnline(process, tc); - matched = true; } if (matched) { @@ -90,10 +87,3 @@ Linux::etcPasswd(Process *process, ThreadContext *tc) return csprintf("gem5-user:x:1000:1000:gem5-user,,,:%s:/bin/bash\n", process->tgtCwd); } - -std::string -Linux::cpuOnline(Process *process, ThreadContext *tc) -{ - return csprintf("0-%d\n", - tc->getSystemPtr()->numContexts() - 1); -} |