`./gdbserver.py --spike32 --cmd $RISCV/bin/spike`
-32-bit SiFive Core on Supported FPGA boards
+32-bit SiFive Core on Supported FPGA Boards & Hardware
-------------------------------------
`./gdbserver.py --freedom-e300`
instruction_hardware_breakpoint_count = 2
def server(self):
- sim = testlib.VcsSim(simv=parsed.run)
+ sim = testlib.VcsSim(simv=parsed.run, debug=True)
x = testlib.Openocd(cmd=parsed.cmd,
config="targets/%s/openocd.cfg" % self.name,
- keepAlive = sim)
+ otherProcess = sim)
time.sleep(20)
return x
done = True
def __del__(self):
- print "DELETE called for VcsSim"
try:
self.process.kill()
self.process.wait()
class Openocd(object):
- def __init__(self, cmd=None, config=None, debug=False, keepAlive=None):
+ def __init__(self, cmd=None, config=None, debug=False, otherProcess=None):
# keep handles to other processes -- don't let them be
# garbage collected yet.
- self.keepAlive = keepAlive
+ self.otherProcess = otherProcess
if cmd:
cmd = shlex.split(cmd)
else: