process.hh (6701:4842482e1bd1) process.hh (7532:3f6413fc37a2)
1/*
2 * Copyright (c) 2003-2004 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;

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

47 const Addr StackBias;
48
49 //The locations of the fill and spill handlers
50 Addr fillStart, spillStart;
51
52 SparcLiveProcess(LiveProcessParams * params,
53 ObjectFile *objFile, Addr _StackBias);
54
1/*
2 * Copyright (c) 2003-2004 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;

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

47 const Addr StackBias;
48
49 //The locations of the fill and spill handlers
50 Addr fillStart, spillStart;
51
52 SparcLiveProcess(LiveProcessParams * params,
53 ObjectFile *objFile, Addr _StackBias);
54
55 void startup();
55 void initState();
56
57 template<class IntType>
58 void argsInit(int pageSize);
59
60 public:
61
62 //Handles traps which request services from the operating system
63 virtual void handleTrap(int trapNum, ThreadContext *tc);

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

82 // Set up stack. On SPARC Linux, stack goes from the top of memory
83 // downward, less the hole for the kernel address space.
84 stack_base = (Addr)0xf0000000ULL;
85
86 // Set up region for mmaps.
87 mmap_start = mmap_end = 0x70000000;
88 }
89
56
57 template<class IntType>
58 void argsInit(int pageSize);
59
60 public:
61
62 //Handles traps which request services from the operating system
63 virtual void handleTrap(int trapNum, ThreadContext *tc);

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

82 // Set up stack. On SPARC Linux, stack goes from the top of memory
83 // downward, less the hole for the kernel address space.
84 stack_base = (Addr)0xf0000000ULL;
85
86 // Set up region for mmaps.
87 mmap_start = mmap_end = 0x70000000;
88 }
89
90 void startup();
90 void initState();
91
92 public:
93
94 void argsInit(int intSize, int pageSize);
95
96 void flushWindows(ThreadContext *tc);
97
98 SparcISA::IntReg getSyscallArg(ThreadContext *tc, int &i);

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

110 // downward, less the hole for the kernel address space.
111 stack_base = (Addr)0x80000000000ULL;
112
113 // Set up region for mmaps. Tru64 seems to start just above 0 and
114 // grow up from there.
115 mmap_start = mmap_end = 0xfffff80000000000ULL;
116 }
117
91
92 public:
93
94 void argsInit(int intSize, int pageSize);
95
96 void flushWindows(ThreadContext *tc);
97
98 SparcISA::IntReg getSyscallArg(ThreadContext *tc, int &i);

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

110 // downward, less the hole for the kernel address space.
111 stack_base = (Addr)0x80000000000ULL;
112
113 // Set up region for mmaps. Tru64 seems to start just above 0 and
114 // grow up from there.
115 mmap_start = mmap_end = 0xfffff80000000000ULL;
116 }
117
118 void startup();
118 void initState();
119
120 public:
121
122 void argsInit(int intSize, int pageSize);
123
124 void flushWindows(ThreadContext *tc);
125
126 SparcISA::IntReg getSyscallArg(ThreadContext *tc, int &i);
127 void setSyscallArg(ThreadContext *tc, int i, SparcISA::IntReg val);
128};
129
130#endif // __SPARC_PROCESS_HH__
119
120 public:
121
122 void argsInit(int intSize, int pageSize);
123
124 void flushWindows(ThreadContext *tc);
125
126 SparcISA::IntReg getSyscallArg(ThreadContext *tc, int &i);
127 void setSyscallArg(ThreadContext *tc, int i, SparcISA::IntReg val);
128};
129
130#endif // __SPARC_PROCESS_HH__