AbstractController.hh (10837:ecbab2522757) | AbstractController.hh (10963:51f40b101a56) |
---|---|
1/* 2 * Copyright (c) 2009-2014 Mark D. Hill and David A. Wood 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; --- 15 unchanged lines hidden (view full) --- 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29#ifndef __MEM_RUBY_SLICC_INTERFACE_ABSTRACTCONTROLLER_HH__ 30#define __MEM_RUBY_SLICC_INTERFACE_ABSTRACTCONTROLLER_HH__ 31 | 1/* 2 * Copyright (c) 2009-2014 Mark D. Hill and David A. Wood 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; --- 15 unchanged lines hidden (view full) --- 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29#ifndef __MEM_RUBY_SLICC_INTERFACE_ABSTRACTCONTROLLER_HH__ 30#define __MEM_RUBY_SLICC_INTERFACE_ABSTRACTCONTROLLER_HH__ 31 |
32#include <exception> |
|
32#include <iostream> 33#include <string> 34 35#include "base/callback.hh" 36#include "mem/protocol/AccessPermission.hh" 37#include "mem/ruby/common/Address.hh" 38#include "mem/ruby/common/Consumer.hh" 39#include "mem/ruby/common/DataBlock.hh" --- 4 unchanged lines hidden (view full) --- 44#include "mem/ruby/system/CacheRecorder.hh" 45#include "mem/packet.hh" 46#include "mem/qport.hh" 47#include "params/RubyController.hh" 48#include "mem/mem_object.hh" 49 50class Network; 51 | 33#include <iostream> 34#include <string> 35 36#include "base/callback.hh" 37#include "mem/protocol/AccessPermission.hh" 38#include "mem/ruby/common/Address.hh" 39#include "mem/ruby/common/Consumer.hh" 40#include "mem/ruby/common/DataBlock.hh" --- 4 unchanged lines hidden (view full) --- 45#include "mem/ruby/system/CacheRecorder.hh" 46#include "mem/packet.hh" 47#include "mem/qport.hh" 48#include "params/RubyController.hh" 49#include "mem/mem_object.hh" 50 51class Network; 52 |
53// used to communicate that an in_port peeked the wrong message type 54class RejectException: public std::exception 55{ 56 virtual const char* what() const throw() 57 { return "Port rejected message based on type"; } 58}; 59 |
|
52class AbstractController : public MemObject, public Consumer 53{ 54 public: 55 typedef RubyControllerParams Params; 56 AbstractController(const Params *p); 57 void init(); 58 const Params *params() const { return (const Params *)_params; } 59 --- 160 unchanged lines hidden --- | 60class AbstractController : public MemObject, public Consumer 61{ 62 public: 63 typedef RubyControllerParams Params; 64 AbstractController(const Params *p); 65 void init(); 66 const Params *params() const { return (const Params *)_params; } 67 --- 160 unchanged lines hidden --- |