fix signal emission problems from the debug option
Merge branch 'master' of github.com:ucb-bar/chisel