ucb-bar / chisel2-deprecated

chisel.eecs.berkeley.edu
387 stars 89 forks source link

peek()'ing or poke()'ing non-circuit element hangs Tester. #581

Closed ucbjrl closed 8 years ago

ucbjrl commented 8 years ago

When sim_api_t::getid(), peek(), or poke() is called with a path that doesn't map to a circuit element, it does an exit(0). This can leave the Java side hung inside Stream IO. Return -1 on getid() failure. If we're going to exit prematurely, we should not claim it's a normal exit.

ucbjrl commented 8 years ago

Closed by #582