projects
/
riscv-isa-sim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
990c6c4
)
Remove debug printfs.
author
Tim Newsome
<tim@sifive.com>
Sun, 1 May 2016 19:26:29 +0000
(12:26 -0700)
committer
Tim Newsome
<tim@sifive.com>
Mon, 23 May 2016 19:12:11 +0000
(12:12 -0700)
riscv/devices.cc
patch
|
blob
|
history
diff --git
a/riscv/devices.cc
b/riscv/devices.cc
index 4e88a1df4328e02d9be83263304c6c6224071f83..c7a63b0044b87e5a9a5dbd3df2958abd95699cd5 100644
(file)
--- 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);
}