fetch_impl.hh (2870:e81b23c19e5a) fetch_impl.hh (2871:7ed5c9ef3eb6)
1/*
2 * Copyright (c) 2004-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;

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

275DefaultFetch<Impl>::setCPU(O3CPU *cpu_ptr)
276{
277 DPRINTF(Fetch, "Setting the CPU pointer.\n");
278 cpu = cpu_ptr;
279
280 // Name is finally available, so create the port.
281 icachePort = new IcachePort(this);
282
1/*
2 * Copyright (c) 2004-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;

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

275DefaultFetch<Impl>::setCPU(O3CPU *cpu_ptr)
276{
277 DPRINTF(Fetch, "Setting the CPU pointer.\n");
278 cpu = cpu_ptr;
279
280 // Name is finally available, so create the port.
281 icachePort = new IcachePort(this);
282
283 Port *mem_dport = mem->getPort("");
284 icachePort->setPeer(mem_dport);
285 mem_dport->setPeer(icachePort);
286
287#if USE_CHECKER
288 if (cpu->checker) {
289 cpu->checker->setIcachePort(icachePort);
290 }
291#endif
292
293 // Fetch needs to start fetching instructions at the very beginning,
294 // so it must start up in active state.

--- 1007 unchanged lines hidden ---
283#if USE_CHECKER
284 if (cpu->checker) {
285 cpu->checker->setIcachePort(icachePort);
286 }
287#endif
288
289 // Fetch needs to start fetching instructions at the very beginning,
290 // so it must start up in active state.

--- 1007 unchanged lines hidden ---