diff options
author | Nathan Binkert <binkertn@umich.edu> | 2005-03-29 07:55:44 -0500 |
---|---|---|
committer | Nathan Binkert <binkertn@umich.edu> | 2005-03-29 07:55:44 -0500 |
commit | 43a9caa2214faffaa1fd5ce1730063f9959a8ce8 (patch) | |
tree | c4e76e7d0dffaee04f58f131e458b23d8be06611 /dev/etherlink.cc | |
parent | a86b95cb182b435bda5d76197cd9f32ba6db83c2 (diff) | |
download | gem5-43a9caa2214faffaa1fd5ce1730063f9959a8ce8.tar.xz |
expose variables for number of global events per simulated second,
millisecond, microsecond, etc. so that the user can explicitly
convert between system ticks and time and know what sorts of
expensive operations are being used for that conversion.
arch/alpha/alpha_tru64_process.cc:
arch/alpha/pseudo_inst.cc:
dev/etherdump.cc:
dev/etherlink.cc:
dev/ns_gige.cc:
dev/sinic.cc:
dev/tsunami_io.cc:
dev/uart.cc:
sim/stat_control.cc:
sim/syscall_emul.hh:
Use the new variables for getting the event clock
dev/etherdump.hh:
delete variables that are no longer needed.
--HG--
extra : convert_revision : d95fc7d44909443e1b7952a24ef822ef051c7cf2
Diffstat (limited to 'dev/etherlink.cc')
-rw-r--r-- | dev/etherlink.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dev/etherlink.cc b/dev/etherlink.cc index 81cdbc20f..ba0fa705c 100644 --- a/dev/etherlink.cc +++ b/dev/etherlink.cc @@ -52,7 +52,7 @@ EtherLink::EtherLink(const string &name, EtherInt *peer0, EtherInt *peer1, : SimObject(name) { double rate = ((double)ticksPerSecond * 8.0) / (double)speed; - Tick delay = US2Ticks(dly); + Tick delay = dly * Clock::Int::us; link[0] = new Link(name + ".link0", this, 0, rate, delay, dump); link[1] = new Link(name + ".link1", this, 1, rate, delay, dump); |