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

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

42unameFunc(SyscallDesc *desc, int callnum, ThreadContext *tc)
43{
44 int index = 0;
45 auto process = tc->getProcessPtr();
46 TypedBufferArg<Linux::utsname> name(process->getSyscallArg(tc, index));
47
48 strcpy(name->sysname, "Linux");
49 strcpy(name->nodename, "sim.gem5.org");
1/*
2 * Copyright (c) 2003-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

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

42unameFunc(SyscallDesc *desc, int callnum, ThreadContext *tc)
43{
44 int index = 0;
45 auto process = tc->getProcessPtr();
46 TypedBufferArg<Linux::utsname> name(process->getSyscallArg(tc, index));
47
48 strcpy(name->sysname, "Linux");
49 strcpy(name->nodename, "sim.gem5.org");
50 strcpy(name->release, "3.0.0-sparc64");
50 strcpy(name->release, process->release.c_str());
51 strcpy(name->version, "#1 Mon Aug 18 11:32:15 EDT 2003");
52 strcpy(name->machine, "sparc");
53
54 name.copyOut(tc->getMemProxy());
55
56 return 0;
57}
58

--- 629 unchanged lines hidden ---
51 strcpy(name->version, "#1 Mon Aug 18 11:32:15 EDT 2003");
52 strcpy(name->machine, "sparc");
53
54 name.copyOut(tc->getMemProxy());
55
56 return 0;
57}
58

--- 629 unchanged lines hidden ---