fetch.hh (7813:7338bc628489) fetch.hh (7847:0c6613ad8f18)
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;

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

239 * @param ret_fault The fault reference that will be set to the result of
240 * the icache access.
241 * @param tid Thread id.
242 * @param pc The actual PC of the current instruction.
243 * @return Any fault that occured.
244 */
245 bool fetchCacheLine(Addr vaddr, Fault &ret_fault, ThreadID tid, Addr pc);
246
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;

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

239 * @param ret_fault The fault reference that will be set to the result of
240 * the icache access.
241 * @param tid Thread id.
242 * @param pc The actual PC of the current instruction.
243 * @return Any fault that occured.
244 */
245 bool fetchCacheLine(Addr vaddr, Fault &ret_fault, ThreadID tid, Addr pc);
246
247
248 /** Check if an interrupt is pending and that we need to handle
249 */
250 bool
251 checkInterrupt(Addr pc)
252 {
253 return (interruptPending && (THE_ISA != ALPHA_ISA || !(pc & 0x3)));
254 }
255
247 /** Squashes a specific thread and resets the PC. */
248 inline void doSquash(const TheISA::PCState &newPC, ThreadID tid);
249
250 /** Squashes a specific thread and resets the PC. Also tells the CPU to
251 * remove any instructions between fetch and decode that should be sqaushed.
252 */
253 void squashFromDecode(const TheISA::PCState &newPC,
254 const InstSeqNum &seq_num, ThreadID tid);

--- 232 unchanged lines hidden ---
256 /** Squashes a specific thread and resets the PC. */
257 inline void doSquash(const TheISA::PCState &newPC, ThreadID tid);
258
259 /** Squashes a specific thread and resets the PC. Also tells the CPU to
260 * remove any instructions between fetch and decode that should be sqaushed.
261 */
262 void squashFromDecode(const TheISA::PCState &newPC,
263 const InstSeqNum &seq_num, ThreadID tid);

--- 232 unchanged lines hidden ---