diff options
author | Steve Reinhardt <stever@gmail.com> | 2008-06-21 01:04:43 -0400 |
---|---|---|
committer | Steve Reinhardt <stever@gmail.com> | 2008-06-21 01:04:43 -0400 |
commit | 6b45238316052f458ba9ebc9d24a91cfa9e41cf1 (patch) | |
tree | 25f6faa5422b6e44e51fbd2f50d3d969d63a1e10 /src/cpu/o3/fetch.hh | |
parent | c1584e422783a33731c7dfa23517d30bcecf28bc (diff) | |
download | gem5-6b45238316052f458ba9ebc9d24a91cfa9e41cf1.tar.xz |
Generate more useful error messages for unconnected ports.
Force all non-default ports to provide a name and an
owner in the constructor.
Diffstat (limited to 'src/cpu/o3/fetch.hh')
-rw-r--r-- | src/cpu/o3/fetch.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cpu/o3/fetch.hh b/src/cpu/o3/fetch.hh index d954bd1e7..3ada0328f 100644 --- a/src/cpu/o3/fetch.hh +++ b/src/cpu/o3/fetch.hh @@ -80,8 +80,8 @@ class DefaultFetch public: /** Default constructor. */ - IcachePort(DefaultFetch<Impl> *_fetch) - : Port(_fetch->name() + "-iport"), fetch(_fetch) + IcachePort(DefaultFetch<Impl> *_fetch, O3CPU *_cpu) + : Port(_fetch->name() + "-iport", _cpu), fetch(_fetch) { } bool snoopRangeSent; |