RubyPort.cc (13784:1941dc118243) | RubyPort.cc (13892:0182a0601f66) |
---|---|
1/* 2 * Copyright (c) 2012-2013 ARM Limited 3 * All rights reserved. 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 38 unchanged lines hidden (view full) --- 47#include "debug/Ruby.hh" 48#include "mem/protocol/AccessPermission.hh" 49#include "mem/ruby/slicc_interface/AbstractController.hh" 50#include "mem/simple_mem.hh" 51#include "sim/full_system.hh" 52#include "sim/system.hh" 53 54RubyPort::RubyPort(const Params *p) | 1/* 2 * Copyright (c) 2012-2013 ARM Limited 3 * All rights reserved. 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 38 unchanged lines hidden (view full) --- 47#include "debug/Ruby.hh" 48#include "mem/protocol/AccessPermission.hh" 49#include "mem/ruby/slicc_interface/AbstractController.hh" 50#include "mem/simple_mem.hh" 51#include "sim/full_system.hh" 52#include "sim/system.hh" 53 54RubyPort::RubyPort(const Params *p) |
55 : MemObject(p), m_ruby_system(p->ruby_system), m_version(p->version), | 55 : ClockedObject(p), m_ruby_system(p->ruby_system), m_version(p->version), |
56 m_controller(NULL), m_mandatory_q_ptr(NULL), 57 m_usingRubyTester(p->using_ruby_tester), system(p->system), 58 pioMasterPort(csprintf("%s.pio-master-port", name()), this), 59 pioSlavePort(csprintf("%s.pio-slave-port", name()), this), 60 memMasterPort(csprintf("%s.mem-master-port", name()), this), 61 memSlavePort(csprintf("%s-mem-slave-port", name()), this, 62 p->ruby_system->getAccessBackingStore(), -1, 63 p->no_retry_on_stall), --- 48 unchanged lines hidden (view full) --- 112 if (idx >= static_cast<PortID>(slave_ports.size())) { 113 panic("RubyPort::getPort slave: unknown index %d\n", idx); 114 } 115 116 return *slave_ports[idx]; 117 } 118 119 // pass it along to our super class | 56 m_controller(NULL), m_mandatory_q_ptr(NULL), 57 m_usingRubyTester(p->using_ruby_tester), system(p->system), 58 pioMasterPort(csprintf("%s.pio-master-port", name()), this), 59 pioSlavePort(csprintf("%s.pio-slave-port", name()), this), 60 memMasterPort(csprintf("%s.mem-master-port", name()), this), 61 memSlavePort(csprintf("%s-mem-slave-port", name()), this, 62 p->ruby_system->getAccessBackingStore(), -1, 63 p->no_retry_on_stall), --- 48 unchanged lines hidden (view full) --- 112 if (idx >= static_cast<PortID>(slave_ports.size())) { 113 panic("RubyPort::getPort slave: unknown index %d\n", idx); 114 } 115 116 return *slave_ports[idx]; 117 } 118 119 // pass it along to our super class |
120 return MemObject::getPort(if_name, idx); | 120 return ClockedObject::getPort(if_name, idx); |
121} 122 123RubyPort::PioMasterPort::PioMasterPort(const std::string &_name, 124 RubyPort *_port) 125 : QueuedMasterPort(_name, _port, reqQueue, snoopRespQueue), 126 reqQueue(*_port, *this), snoopRespQueue(*_port, *this) 127{ 128 DPRINTF(RubyPort, "Created master pioport on sequencer %s\n", _name); --- 491 unchanged lines hidden --- | 121} 122 123RubyPort::PioMasterPort::PioMasterPort(const std::string &_name, 124 RubyPort *_port) 125 : QueuedMasterPort(_name, _port, reqQueue, snoopRespQueue), 126 reqQueue(*_port, *this), snoopRespQueue(*_port, *this) 127{ 128 DPRINTF(RubyPort, "Created master pioport on sequencer %s\n", _name); --- 491 unchanged lines hidden --- |