diff options
author | Tim Newsome <tim@sifive.com> | 2020-08-20 12:40:46 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-20 12:40:46 -0700 |
commit | 5f76a0d1fa68bb80560cb890405c42041f744e89 (patch) | |
tree | b72148dc8a5bf9b6714b370e4da8b64a40306ec8 /riscv | |
parent | 0f0fe6817e70cc0efdd1373b6f164004a094e82d (diff) | |
download | spike-5f76a0d1fa68bb80560cb890405c42041f744e89.zip spike-5f76a0d1fa68bb80560cb890405c42041f744e89.tar.gz spike-5f76a0d1fa68bb80560cb890405c42041f744e89.tar.bz2 |
Fix debug tests failing with impebreak enabled. (#530)
Introduced in #527.
Diffstat (limited to 'riscv')
-rw-r--r-- | riscv/debug_module.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/riscv/debug_module.cc b/riscv/debug_module.cc index 2a364b3..5490d0e 100644 --- a/riscv/debug_module.cc +++ b/riscv/debug_module.cc @@ -34,7 +34,7 @@ static unsigned field_width(unsigned n) debug_module_t::debug_module_t(sim_t *sim, const debug_module_config_t &config) : nprocs(sim->nprocs()), config(config), - program_buffer_bytes(config.support_impebreak ? 4 : 0 + 4*config.progbufsize), + program_buffer_bytes((config.support_impebreak ? 4 : 0) + 4*config.progbufsize), debug_progbuf_start(debug_data_start - program_buffer_bytes), debug_abstract_start(debug_progbuf_start - debug_abstract_size*4), custom_base(0), |