process.cc (14010:0e1e887507c0) | process.cc (14014:ce216ee5d886) |
---|---|
1/* 2 * Copyright (c) 2010-2013, 2015 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 99 unchanged lines hidden (view full) --- 108unameFunc32(SyscallDesc *desc, int callnum, ThreadContext *tc) 109{ 110 int index = 0; 111 auto process = tc->getProcessPtr(); 112 TypedBufferArg<Linux::utsname> name(process->getSyscallArg(tc, index)); 113 114 strcpy(name->sysname, "Linux"); 115 strcpy(name->nodename, "m5.eecs.umich.edu"); | 1/* 2 * Copyright (c) 2010-2013, 2015 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 99 unchanged lines hidden (view full) --- 108unameFunc32(SyscallDesc *desc, int callnum, ThreadContext *tc) 109{ 110 int index = 0; 111 auto process = tc->getProcessPtr(); 112 TypedBufferArg<Linux::utsname> name(process->getSyscallArg(tc, index)); 113 114 strcpy(name->sysname, "Linux"); 115 strcpy(name->nodename, "m5.eecs.umich.edu"); |
116 strcpy(name->release, "3.7.0+"); | 116 strcpy(name->release, process->release.c_str()); |
117 strcpy(name->version, "#1 SMP Sat Dec 1 00:00:00 GMT 2012"); 118 strcpy(name->machine, "armv7l"); 119 120 name.copyOut(tc->getMemProxy()); 121 return 0; 122} 123 124/// Target uname() handler. 125static SyscallReturn 126unameFunc64(SyscallDesc *desc, int callnum, ThreadContext *tc) 127{ 128 int index = 0; 129 auto process = tc->getProcessPtr(); 130 TypedBufferArg<Linux::utsname> name(process->getSyscallArg(tc, index)); 131 132 strcpy(name->sysname, "Linux"); 133 strcpy(name->nodename, "gem5"); | 117 strcpy(name->version, "#1 SMP Sat Dec 1 00:00:00 GMT 2012"); 118 strcpy(name->machine, "armv7l"); 119 120 name.copyOut(tc->getMemProxy()); 121 return 0; 122} 123 124/// Target uname() handler. 125static SyscallReturn 126unameFunc64(SyscallDesc *desc, int callnum, ThreadContext *tc) 127{ 128 int index = 0; 129 auto process = tc->getProcessPtr(); 130 TypedBufferArg<Linux::utsname> name(process->getSyscallArg(tc, index)); 131 132 strcpy(name->sysname, "Linux"); 133 strcpy(name->nodename, "gem5"); |
134 strcpy(name->release, "4.10.8+"); | 134 strcpy(name->release, process->release.c_str()); |
135 strcpy(name->version, "#1 SMP Sat Dec 1 00:00:00 GMT 2012"); 136 strcpy(name->machine, "armv8l"); 137 138 name.copyOut(tc->getMemProxy()); 139 return 0; 140} 141 142/// Target set_tls() handler. --- 1637 unchanged lines hidden --- | 135 strcpy(name->version, "#1 SMP Sat Dec 1 00:00:00 GMT 2012"); 136 strcpy(name->machine, "armv8l"); 137 138 name.copyOut(tc->getMemProxy()); 139 return 0; 140} 141 142/// Target set_tls() handler. --- 1637 unchanged lines hidden --- |