RubyPort.cc (10115:0e0a0dd558db) RubyPort.cc (10117:37e333de580f)
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

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

41
42#include "cpu/testers/rubytest/RubyTester.hh"
43#include "debug/Config.hh"
44#include "debug/Drain.hh"
45#include "debug/Ruby.hh"
46#include "mem/protocol/AccessPermission.hh"
47#include "mem/ruby/slicc_interface/AbstractController.hh"
48#include "mem/ruby/system/RubyPort.hh"
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

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

41
42#include "cpu/testers/rubytest/RubyTester.hh"
43#include "debug/Config.hh"
44#include "debug/Drain.hh"
45#include "debug/Ruby.hh"
46#include "mem/protocol/AccessPermission.hh"
47#include "mem/ruby/slicc_interface/AbstractController.hh"
48#include "mem/ruby/system/RubyPort.hh"
49#include "sim/full_system.hh"
49#include "sim/system.hh"
50
51RubyPort::RubyPort(const Params *p)
52 : MemObject(p), m_version(p->version), m_controller(NULL),
53 m_mandatory_q_ptr(NULL), m_usingRubyTester(p->using_ruby_tester),
54 pioMasterPort(csprintf("%s.pio-master-port", name()), this),
55 pioSlavePort(csprintf("%s.pio-slave-port", name()), this),
56 memMasterPort(csprintf("%s.mem-master-port", name()), this),

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

553 }
554}
555
556void
557RubyPort::PioMasterPort::recvRangeChange()
558{
559 RubyPort &r = static_cast<RubyPort &>(owner);
560 r.gotAddrRanges--;
50#include "sim/system.hh"
51
52RubyPort::RubyPort(const Params *p)
53 : MemObject(p), m_version(p->version), m_controller(NULL),
54 m_mandatory_q_ptr(NULL), m_usingRubyTester(p->using_ruby_tester),
55 pioMasterPort(csprintf("%s.pio-master-port", name()), this),
56 pioSlavePort(csprintf("%s.pio-slave-port", name()), this),
57 memMasterPort(csprintf("%s.mem-master-port", name()), this),

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

554 }
555}
556
557void
558RubyPort::PioMasterPort::recvRangeChange()
559{
560 RubyPort &r = static_cast<RubyPort &>(owner);
561 r.gotAddrRanges--;
561 if (r.gotAddrRanges == 0) {
562 if (r.gotAddrRanges == 0 && FullSystem) {
562 r.pioSlavePort.sendRangeChange();
563 }
564}
563 r.pioSlavePort.sendRangeChange();
564 }
565}