RubyPort.cc (8615:e66a566f2cfa) | RubyPort.cc (8686:71ac9dda5432) |
---|---|
1/* 2 * Copyright (c) 2009 Advanced Micro Devices, Inc. 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; --- 52 unchanged lines hidden (view full) --- 61 assert(m_controller != NULL); 62 m_mandatory_q_ptr = m_controller->getMandatoryQueue(); 63} 64 65Port * 66RubyPort::getPort(const std::string &if_name, int idx) 67{ 68 if (if_name == "port") { | 1/* 2 * Copyright (c) 2009 Advanced Micro Devices, Inc. 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; --- 52 unchanged lines hidden (view full) --- 61 assert(m_controller != NULL); 62 m_mandatory_q_ptr = m_controller->getMandatoryQueue(); 63} 64 65Port * 66RubyPort::getPort(const std::string &if_name, int idx) 67{ 68 if (if_name == "port") { |
69 return new M5Port(csprintf("%s-port%d", name(), idx), this, 70 ruby_system, access_phys_mem); | 69 M5Port* cpuPort = new M5Port(csprintf("%s-port%d", name(), idx), 70 this, ruby_system, access_phys_mem); 71 cpu_ports.push_back(cpuPort); 72 return cpuPort; |
71 } 72 73 if (if_name == "pio_port") { 74 // ensure there is only one pio port 75 assert(pio_port == NULL); 76 77 pio_port = new PioPort(csprintf("%s-pio-port%d", name(), idx), this); 78 --- 532 unchanged lines hidden --- | 73 } 74 75 if (if_name == "pio_port") { 76 // ensure there is only one pio port 77 assert(pio_port == NULL); 78 79 pio_port = new PioPort(csprintf("%s-pio-port%d", name(), idx), this); 80 --- 532 unchanged lines hidden --- |