diff options
author | Tim Newsome <tim@sifive.com> | 2016-05-01 12:26:29 -0700 |
---|---|---|
committer | Tim Newsome <tim@sifive.com> | 2016-05-23 12:12:11 -0700 |
commit | 47f64aaf95701d02a6b149b72422d319c8d99536 (patch) | |
tree | f389957ecfbb48258b2c2c44cd59401e9d3b015e /riscv/devices.cc | |
parent | 990c6c48098e83584edf5282d119187abae04a4d (diff) | |
download | spike-47f64aaf95701d02a6b149b72422d319c8d99536.zip spike-47f64aaf95701d02a6b149b72422d319c8d99536.tar.gz spike-47f64aaf95701d02a6b149b72422d319c8d99536.tar.bz2 |
Remove debug printfs.
Diffstat (limited to 'riscv/devices.cc')
-rw-r--r-- | riscv/devices.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/riscv/devices.cc b/riscv/devices.cc index 4e88a1d..c7a63b0 100644 --- a/riscv/devices.cc +++ b/riscv/devices.cc @@ -7,12 +7,9 @@ void bus_t::add_device(reg_t addr, abstract_device_t* dev) bool bus_t::load(reg_t addr, size_t len, uint8_t* bytes) { - fprintf(stderr, "bus load(0x%lx, %ld)\n", addr, len); auto it = devices.lower_bound(-addr); - if (it == devices.end()) { - fprintf(stderr, " -> false\n"); + if (it == devices.end()) return false; - } return it->second->load(addr - -it->first, len, bytes); } |