cpu.hh (5807:57f9f8b8e62f) cpu.hh (5890:bdef71accd68)
1/*
2 * Copyright (c) 2004-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;

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

274 this->itb->demapPage(vaddr, asn);
275 }
276
277 void demapDataPage(Addr vaddr, uint64_t asn)
278 {
279 this->dtb->demapPage(vaddr, asn);
280 }
281
1/*
2 * Copyright (c) 2004-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;

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

274 this->itb->demapPage(vaddr, asn);
275 }
276
277 void demapDataPage(Addr vaddr, uint64_t asn)
278 {
279 this->dtb->demapPage(vaddr, asn);
280 }
281
282 /** Translates instruction requestion. */
283 Fault translateInstReq(RequestPtr &req, Thread *thread)
284 {
285 return this->itb->translate(req, thread->getTC());
286 }
287
288 /** Translates data read request. */
289 Fault translateDataReadReq(RequestPtr &req, Thread *thread)
290 {
291 return this->dtb->translate(req, thread->getTC(), false);
292 }
293
294 /** Translates data write request. */
295 Fault translateDataWriteReq(RequestPtr &req, Thread *thread)
296 {
297 return this->dtb->translate(req, thread->getTC(), true);
298 }
299
300 /** Returns a specific port. */
301 Port *getPort(const std::string &if_name, int idx);
302
303 /** Ticks CPU, calling tick() on each stage, and checking the overall
304 * activity to see if the CPU should deschedule itself.
305 */
306 void tick();
307

--- 497 unchanged lines hidden ---
282 /** Returns a specific port. */
283 Port *getPort(const std::string &if_name, int idx);
284
285 /** Ticks CPU, calling tick() on each stage, and checking the overall
286 * activity to see if the CPU should deschedule itself.
287 */
288 void tick();
289

--- 497 unchanged lines hidden ---