diff options
author | S.Pawan Kumar <30653405+Dracarys99@users.noreply.github.com> | 2020-10-22 05:37:54 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-21 22:37:54 -0700 |
commit | 06c434f769ebbe783bc524591b780eefc65e05d6 (patch) | |
tree | 68ad0666a4bc696cd6720a18cf540517c3cc9ad7 /fesvr/htif.cc | |
parent | be5af59bcaca4dc90a0d276e1eccc4f4896b0373 (diff) | |
download | spike-06c434f769ebbe783bc524591b780eefc65e05d6.zip spike-06c434f769ebbe783bc524591b780eefc65e05d6.tar.gz spike-06c434f769ebbe783bc524591b780eefc65e05d6.tar.bz2 |
Update htif.cc (#577)
Bug fix for final byte in signature output.
Diffstat (limited to 'fesvr/htif.cc')
-rw-r--r-- | fesvr/htif.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fesvr/htif.cc b/fesvr/htif.cc index c989cd1..30b13de 100644 --- a/fesvr/htif.cc +++ b/fesvr/htif.cc @@ -178,7 +178,7 @@ void htif_t::stop() for (addr_t i = 0; i < sig_len; i += line_size) { for (addr_t j = line_size; j > 0; j--) - if (i+j < sig_len) + if (i+j <= sig_len) sigs << std::setw(2) << (uint16_t)buf[i+j-1]; else sigs << std::setw(2) << (uint16_t)0; |