process.cc (2665:a124942bacb8) process.cc (2680:246e7104f744)
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;

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

28 * Authors: Ali Saidi
29 */
30
31#include "arch/sparc/isa_traits.hh"
32#include "arch/sparc/solaris/process.hh"
33#include "arch/sparc/regfile.hh"
34
35#include "base/trace.hh"
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;

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

28 * Authors: Ali Saidi
29 */
30
31#include "arch/sparc/isa_traits.hh"
32#include "arch/sparc/solaris/process.hh"
33#include "arch/sparc/regfile.hh"
34
35#include "base/trace.hh"
36#include "cpu/exec_context.hh"
36#include "cpu/thread_context.hh"
37#include "kern/solaris/solaris.hh"
38
39#include "sim/process.hh"
40#include "sim/syscall_emul.hh"
41
42using namespace std;
43using namespace SparcISA;
44
45
46/// Target uname() handler.
47static SyscallReturn
48unameFunc(SyscallDesc *desc, int callnum, Process *process,
37#include "kern/solaris/solaris.hh"
38
39#include "sim/process.hh"
40#include "sim/syscall_emul.hh"
41
42using namespace std;
43using namespace SparcISA;
44
45
46/// Target uname() handler.
47static SyscallReturn
48unameFunc(SyscallDesc *desc, int callnum, Process *process,
49 ExecContext *xc)
49 ThreadContext *tc)
50{
50{
51 TypedBufferArg<Solaris::utsname> name(xc->getSyscallArg(0));
51 TypedBufferArg<Solaris::utsname> name(tc->getSyscallArg(0));
52
53 strcpy(name->sysname, "SunOS");
54 strcpy(name->nodename, "m5.eecs.umich.edu");
55 strcpy(name->release, "5.9"); //?? do we want this or something newer?
56 strcpy(name->version, "Generic_118558-21");
57 strcpy(name->machine, "sun4u");
58
52
53 strcpy(name->sysname, "SunOS");
54 strcpy(name->nodename, "m5.eecs.umich.edu");
55 strcpy(name->release, "5.9"); //?? do we want this or something newer?
56 strcpy(name->version, "Generic_118558-21");
57 strcpy(name->machine, "sun4u");
58
59 name.copyOut(xc->getMemPort());
59 name.copyOut(tc->getMemPort());
60
61 return 0;
62}
63
64
65SyscallDesc SparcSolarisProcess::syscallDescs[] = {
66 /* 0 */ SyscallDesc("syscall", unimplementedFunc),
67 /* 1 */ SyscallDesc("exit", exitFunc),

--- 282 unchanged lines hidden ---
60
61 return 0;
62}
63
64
65SyscallDesc SparcSolarisProcess::syscallDescs[] = {
66 /* 0 */ SyscallDesc("syscall", unimplementedFunc),
67 /* 1 */ SyscallDesc("exit", exitFunc),

--- 282 unchanged lines hidden ---