cpu.hh (7684:ce48527a3edb) cpu.hh (7720:65d338a8dba4)
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;

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

439 * register.
440 */
441 void setArchIntReg(int reg_idx, uint64_t val, ThreadID tid);
442
443 void setArchFloatReg(int reg_idx, float val, ThreadID tid);
444
445 void setArchFloatRegInt(int reg_idx, uint64_t val, ThreadID tid);
446
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;

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

439 * register.
440 */
441 void setArchIntReg(int reg_idx, uint64_t val, ThreadID tid);
442
443 void setArchFloatReg(int reg_idx, float val, ThreadID tid);
444
445 void setArchFloatRegInt(int reg_idx, uint64_t val, ThreadID tid);
446
447 /** Reads the commit PC of a specific thread. */
448 Addr readPC(ThreadID tid);
447 /** Sets the commit PC state of a specific thread. */
448 void pcState(const TheISA::PCState &newPCState, ThreadID tid);
449
449
450 /** Sets the commit PC of a specific thread. */
451 void setPC(Addr new_PC, ThreadID tid);
450 /** Reads the commit PC state of a specific thread. */
451 TheISA::PCState pcState(ThreadID tid);
452
452
453 /** Reads the commit PC of a specific thread. */
454 Addr instAddr(ThreadID tid);
455
453 /** Reads the commit micro PC of a specific thread. */
456 /** Reads the commit micro PC of a specific thread. */
454 Addr readMicroPC(ThreadID tid);
457 MicroPC microPC(ThreadID tid);
455
458
456 /** Sets the commmit micro PC of a specific thread. */
457 void setMicroPC(Addr new_microPC, ThreadID tid);
458
459 /** Reads the next PC of a specific thread. */
459 /** Reads the next PC of a specific thread. */
460 Addr readNextPC(ThreadID tid);
460 Addr nextInstAddr(ThreadID tid);
461
461
462 /** Sets the next PC of a specific thread. */
463 void setNextPC(Addr val, ThreadID tid);
464
465 /** Reads the next NPC of a specific thread. */
466 Addr readNextNPC(ThreadID tid);
467
468 /** Sets the next NPC of a specific thread. */
469 void setNextNPC(Addr val, ThreadID tid);
470
471 /** Reads the commit next micro PC of a specific thread. */
472 Addr readNextMicroPC(ThreadID tid);
473
474 /** Sets the commit next micro PC of a specific thread. */
475 void setNextMicroPC(Addr val, ThreadID tid);
476
477 /** Initiates a squash of all in-flight instructions for a given
478 * thread. The source of the squash is an external update of
479 * state through the TC.
480 */
481 void squashFromTC(ThreadID tid);
482
483 /** Function to add instruction onto the head of the list of the
484 * instructions. Used when new instructions are fetched.

--- 262 unchanged lines hidden ---
462 /** Initiates a squash of all in-flight instructions for a given
463 * thread. The source of the squash is an external update of
464 * state through the TC.
465 */
466 void squashFromTC(ThreadID tid);
467
468 /** Function to add instruction onto the head of the list of the
469 * instructions. Used when new instructions are fetched.

--- 262 unchanged lines hidden ---