aboutsummaryrefslogtreecommitdiff
path: root/riscv/devices.cc
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2016-05-01 12:26:29 -0700
committerTim Newsome <tim@sifive.com>2016-05-23 12:12:11 -0700
commit47f64aaf95701d02a6b149b72422d319c8d99536 (patch)
treef389957ecfbb48258b2c2c44cd59401e9d3b015e /riscv/devices.cc
parent990c6c48098e83584edf5282d119187abae04a4d (diff)
downloadspike-47f64aaf95701d02a6b149b72422d319c8d99536.zip
spike-47f64aaf95701d02a6b149b72422d319c8d99536.tar.gz
spike-47f64aaf95701d02a6b149b72422d319c8d99536.tar.bz2
Remove debug printfs.
Diffstat (limited to 'riscv/devices.cc')
-rw-r--r--riscv/devices.cc5
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);
}