commit_impl.hh (5557:03c186e416aa) | commit_impl.hh (5606:6da7a58b0bc8) |
---|---|
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; --- 37 unchanged lines hidden (view full) --- 46#include "cpu/checker/cpu.hh" 47#endif 48 49#include "params/DerivO3CPU.hh" 50 51template <class Impl> 52DefaultCommit<Impl>::TrapEvent::TrapEvent(DefaultCommit<Impl> *_commit, 53 unsigned _tid) | 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; --- 37 unchanged lines hidden (view full) --- 46#include "cpu/checker/cpu.hh" 47#endif 48 49#include "params/DerivO3CPU.hh" 50 51template <class Impl> 52DefaultCommit<Impl>::TrapEvent::TrapEvent(DefaultCommit<Impl> *_commit, 53 unsigned _tid) |
54 : Event(&mainEventQueue, CPU_Tick_Pri), commit(_commit), tid(_tid) | 54 : Event(CPU_Tick_Pri), commit(_commit), tid(_tid) |
55{ 56 this->setFlags(Event::AutoDelete); 57} 58 59template <class Impl> 60void 61DefaultCommit<Impl>::TrapEvent::process() 62{ --- 394 unchanged lines hidden (view full) --- 457template <class Impl> 458void 459DefaultCommit<Impl>::generateTrapEvent(unsigned tid) 460{ 461 DPRINTF(Commit, "Generating trap event for [tid:%i]\n", tid); 462 463 TrapEvent *trap = new TrapEvent(this, tid); 464 | 55{ 56 this->setFlags(Event::AutoDelete); 57} 58 59template <class Impl> 60void 61DefaultCommit<Impl>::TrapEvent::process() 62{ --- 394 unchanged lines hidden (view full) --- 457template <class Impl> 458void 459DefaultCommit<Impl>::generateTrapEvent(unsigned tid) 460{ 461 DPRINTF(Commit, "Generating trap event for [tid:%i]\n", tid); 462 463 TrapEvent *trap = new TrapEvent(this, tid); 464 |
465 trap->schedule(curTick + trapLatency); | 465 cpu->schedule(trap, curTick + trapLatency); |
466 trapInFlight[tid] = true; 467} 468 469template <class Impl> 470void 471DefaultCommit<Impl>::generateTCEvent(unsigned tid) 472{ 473 assert(!trapInFlight[tid]); --- 903 unchanged lines hidden --- | 466 trapInFlight[tid] = true; 467} 468 469template <class Impl> 470void 471DefaultCommit<Impl>::generateTCEvent(unsigned tid) 472{ 473 assert(!trapInFlight[tid]); --- 903 unchanged lines hidden --- |