cpu.cc (5640:c811ced9efc1) | cpu.cc (5647:b06b49498c79) |
---|---|
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; --- 892 unchanged lines hidden (view full) --- 901 } 902} 903 904template <class Impl> 905Fault 906FullO3CPU<Impl>::getInterrupts() 907{ 908 // Check if there are any outstanding interrupts | 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; --- 892 unchanged lines hidden (view full) --- 901 } 902} 903 904template <class Impl> 905Fault 906FullO3CPU<Impl>::getInterrupts() 907{ 908 // Check if there are any outstanding interrupts |
909 return this->interrupts.getInterrupt(this->threadContexts[0]); | 909 return this->interrupts->getInterrupt(this->threadContexts[0]); |
910} 911 912template <class Impl> 913void 914FullO3CPU<Impl>::processInterrupts(Fault interrupt) 915{ 916 // Check for interrupts here. For now can copy the code that 917 // exists within isa_fullsys_traits.hh. Also assume that thread 0 918 // is the one that handles the interrupts. 919 // @todo: Possibly consolidate the interrupt checking code. 920 // @todo: Allow other threads to handle interrupts. 921 922 assert(interrupt != NoFault); | 910} 911 912template <class Impl> 913void 914FullO3CPU<Impl>::processInterrupts(Fault interrupt) 915{ 916 // Check for interrupts here. For now can copy the code that 917 // exists within isa_fullsys_traits.hh. Also assume that thread 0 918 // is the one that handles the interrupts. 919 // @todo: Possibly consolidate the interrupt checking code. 920 // @todo: Allow other threads to handle interrupts. 921 922 assert(interrupt != NoFault); |
923 this->interrupts.updateIntrInfo(this->threadContexts[0]); | 923 this->interrupts->updateIntrInfo(this->threadContexts[0]); |
924 925 DPRINTF(O3CPU, "Interrupt %s being handled\n", interrupt->name()); 926 this->trap(interrupt, 0); 927} 928 929template <class Impl> 930void 931FullO3CPU<Impl>::updateMemPorts() --- 767 unchanged lines hidden --- | 924 925 DPRINTF(O3CPU, "Interrupt %s being handled\n", interrupt->name()); 926 this->trap(interrupt, 0); 927} 928 929template <class Impl> 930void 931FullO3CPU<Impl>::updateMemPorts() --- 767 unchanged lines hidden --- |