process.cc (2632:1bb2f91485ea) process.cc (2640:266b80dd5eca)
1/*
2 * Copyright (c) 2001-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;

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

149 // first exec context for this process... initialize & enable
150 ExecContext *xc = execContexts[0];
151
152 // mark this context as active so it will start ticking.
153 xc->activate(0);
154
155 Port *mem_port;
156 mem_port = system->physmem->getPort("functional");
1/*
2 * Copyright (c) 2001-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;

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

149 // first exec context for this process... initialize & enable
150 ExecContext *xc = execContexts[0];
151
152 // mark this context as active so it will start ticking.
153 xc->activate(0);
154
155 Port *mem_port;
156 mem_port = system->physmem->getPort("functional");
157 initVirtMem = new TranslatingPort(pTable, true);
157 initVirtMem = new TranslatingPort("process init port", pTable, true);
158 mem_port->setPeer(initVirtMem);
159 initVirtMem->setPeer(mem_port);
160}
161
162void
163Process::replaceExecContext(ExecContext *xc, int xcIndex)
164{
165 if (xcIndex >= execContexts.size()) {

--- 196 unchanged lines hidden ---
158 mem_port->setPeer(initVirtMem);
159 initVirtMem->setPeer(mem_port);
160}
161
162void
163Process::replaceExecContext(ExecContext *xc, int xcIndex)
164{
165 if (xcIndex >= execContexts.size()) {

--- 196 unchanged lines hidden ---