diff options
author | Kevin Lim <ktlim@umich.edu> | 2007-03-29 12:02:57 -0400 |
---|---|---|
committer | Kevin Lim <ktlim@umich.edu> | 2007-03-29 12:02:57 -0400 |
commit | 80af6530f65551c7f47bf62f10093e6e420b47f2 (patch) | |
tree | 1c17a1d6f229a58a6bcd4d9517a7b0e4a1cfbffb /src/cpu/o3/fetch.hh | |
parent | 14a7cda195db9fcc6accca62bf2b8dfdb2218e0e (diff) | |
download | gem5-80af6530f65551c7f47bf62f10093e6e420b47f2.tar.xz |
Update code so that the O3 CPU can handle not initially having anything hooked up to its ports. This fixes the segfault Ali recently found when using sampling.
src/cpu/o3/fetch.hh:
src/cpu/o3/fetch_impl.hh:
Update code so that the O3 CPU can handle not initially having anything hooked up to its ports.
--HG--
extra : convert_revision : 04bcef44e754735d821509ebd69b0ef9c8ef8e2c
Diffstat (limited to 'src/cpu/o3/fetch.hh')
-rw-r--r-- | src/cpu/o3/fetch.hh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cpu/o3/fetch.hh b/src/cpu/o3/fetch.hh index da7ce00f5..811f4d2bc 100644 --- a/src/cpu/o3/fetch.hh +++ b/src/cpu/o3/fetch.hh @@ -86,6 +86,8 @@ class DefaultFetch bool snoopRangeSent; + virtual void setPeer(Port *port); + protected: /** Atomic version of receive. Panics. */ virtual Tick recvAtomic(PacketPtr pkt); @@ -184,6 +186,9 @@ class DefaultFetch /** Initialize stage. */ void initStage(); + /** Tells the fetch stage that the Icache is set. */ + void setIcache(); + /** Processes cache completion event. */ void processCacheCompletion(PacketPtr pkt); |