process.cc (13995:5d459168a680) process.cc (14014:ce216ee5d886)
1/*
2 * Copyright (c) 2005 The Regents of The University of Michigan
3 * Copyright (c) 2007 MIPS Technologies, Inc.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

--- 74 unchanged lines hidden (view full) ---

83unameFunc(SyscallDesc *desc, int callnum, ThreadContext *tc)
84{
85 int index = 0;
86 auto process = tc->getProcessPtr();
87 TypedBufferArg<Linux::utsname> name(process->getSyscallArg(tc, index));
88
89 strcpy(name->sysname, "Linux");
90 strcpy(name->nodename,"sim.gem5.org");
1/*
2 * Copyright (c) 2005 The Regents of The University of Michigan
3 * Copyright (c) 2007 MIPS Technologies, Inc.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

--- 74 unchanged lines hidden (view full) ---

83unameFunc(SyscallDesc *desc, int callnum, ThreadContext *tc)
84{
85 int index = 0;
86 auto process = tc->getProcessPtr();
87 TypedBufferArg<Linux::utsname> name(process->getSyscallArg(tc, index));
88
89 strcpy(name->sysname, "Linux");
90 strcpy(name->nodename,"sim.gem5.org");
91 strcpy(name->release, "3.0.0");
91 strcpy(name->release, process->release.c_str());
92 strcpy(name->version, "#1 Mon Aug 18 11:32:15 EDT 2003");
93 strcpy(name->machine, "mips");
94
95 name.copyOut(tc->getMemProxy());
96 return 0;
97}
98
99/// Target sys_getsysyinfo() handler. Even though this call is

--- 416 unchanged lines hidden ---
92 strcpy(name->version, "#1 Mon Aug 18 11:32:15 EDT 2003");
93 strcpy(name->machine, "mips");
94
95 name.copyOut(tc->getMemProxy());
96 return 0;
97}
98
99/// Target sys_getsysyinfo() handler. Even though this call is

--- 416 unchanged lines hidden ---