thread_state.cc (14024:abe47b13653d) thread_state.cc (14197:26cca0c29be6)
1/*
2 * Copyright (c) 2006 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;

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

104 // The port proxies only refer to the data port on the CPU side
105 // and can safely be done at init() time even if the CPU is not
106 // connected, i.e. when restoring from a checkpoint and later
107 // switching the CPU in.
108 if (FullSystem) {
109 assert(physProxy == NULL);
110 // This cannot be done in the constructor as the thread state
111 // itself is created in the base cpu constructor and the
1/*
2 * Copyright (c) 2006 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;

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

104 // The port proxies only refer to the data port on the CPU side
105 // and can safely be done at init() time even if the CPU is not
106 // connected, i.e. when restoring from a checkpoint and later
107 // switching the CPU in.
108 if (FullSystem) {
109 assert(physProxy == NULL);
110 // This cannot be done in the constructor as the thread state
111 // itself is created in the base cpu constructor and the
112 // getDataPort is a virtual function
113 physProxy = new PortProxy(baseCpu->getDataPort(),
112 // getSendFunctional is a virtual function
113 physProxy = new PortProxy(baseCpu->getSendFunctional(),
114 baseCpu->cacheLineSize());
115
116 assert(virtProxy == NULL);
117 virtProxy = new FSTranslatingPortProxy(tc);
118 } else {
119 assert(virtProxy == NULL);
114 baseCpu->cacheLineSize());
115
116 assert(virtProxy == NULL);
117 virtProxy = new FSTranslatingPortProxy(tc);
118 } else {
119 assert(virtProxy == NULL);
120 virtProxy = new SETranslatingPortProxy(baseCpu->getDataPort(),
120 virtProxy = new SETranslatingPortProxy(baseCpu->getSendFunctional(),
121 process,
122 SETranslatingPortProxy::NextPage);
123 }
124}
125
126PortProxy &
127ThreadState::getPhysProxy()
128{

--- 25 unchanged lines hidden ---
121 process,
122 SETranslatingPortProxy::NextPage);
123 }
124}
125
126PortProxy &
127ThreadState::getPhysProxy()
128{

--- 25 unchanged lines hidden ---