Automated merge after backout.
This commit is contained in:
@@ -523,9 +523,12 @@ Bus::recvStatusChange(Port::Status status, int id)
|
||||
for (iter = ranges.begin(); iter != ranges.end(); iter++) {
|
||||
DPRINTF(BusAddrRanges, "Adding range %#llx - %#llx for id %d\n",
|
||||
iter->start, iter->end, id);
|
||||
if (portMap.insert(*iter, id) == portMap.end())
|
||||
panic("Two devices with same range\n");
|
||||
|
||||
if (portMap.insert(*iter, id) == portMap.end()) {
|
||||
int conflict_id = portMap.find(*iter)->second;
|
||||
fatal("%s has two ports with same range:\n\t%s\n\t%s\n",
|
||||
name(), interfaces[id]->getPeer()->name(),
|
||||
interfaces[conflict_id]->getPeer()->name());
|
||||
}
|
||||
}
|
||||
}
|
||||
DPRINTF(MMU, "port list has %d entries\n", portMap.size());
|
||||
|
||||
@@ -44,8 +44,8 @@
|
||||
|
||||
void create(PyObject *object, Tick when);
|
||||
|
||||
class CountedDrainEvent
|
||||
{
|
||||
class Event;
|
||||
class CountedDrainEvent : public Event {
|
||||
public:
|
||||
void setCount(int _count);
|
||||
};
|
||||
|
||||
@@ -36,10 +36,11 @@
|
||||
#ifndef __SIM_OBJECT_HH__
|
||||
#define __SIM_OBJECT_HH__
|
||||
|
||||
#include <map>
|
||||
#include <list>
|
||||
#include <vector>
|
||||
#include <iostream>
|
||||
#include <list>
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "params/SimObject.hh"
|
||||
#include "sim/serialize.hh"
|
||||
|
||||
@@ -36,6 +36,8 @@
|
||||
struct PyObject;
|
||||
#endif
|
||||
|
||||
#include <string>
|
||||
|
||||
struct SimObjectParams
|
||||
{
|
||||
virtual ~SimObjectParams() {}
|
||||
|
||||
Reference in New Issue
Block a user