diff options
author | davidmetz <david.metz14@googlemail.com> | 2020-03-16 21:08:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-16 13:08:04 -0700 |
commit | efc32d0cab1ee6e52626c0bd59b1929bbd2b2bbe (patch) | |
tree | e69ba6e64d539ec73946e71ca04f23b6109cfd5b /machine | |
parent | 2c4e689bc1ed4440d0d95b3b350ce872e7f75865 (diff) | |
download | riscv-pk-efc32d0cab1ee6e52626c0bd59b1929bbd2b2bbe.zip riscv-pk-efc32d0cab1ee6e52626c0bd59b1929bbd2b2bbe.tar.gz riscv-pk-efc32d0cab1ee6e52626c0bd59b1929bbd2b2bbe.tar.bz2 |
Fix CPI calcualtion for -s option (#192)
This attempt at rounding leads to wrong results, for example:
314689951 cycles
314690101 instructions
0.90 CPI
With my change results in:
314689951 cycles
314690101 instructions
0.99 CPI
I think this was supposed to be part of rounding behaviour but it doesn't work if only the final digit does it and there is no carry...
Instead I changed it to truncate after the second digit
Diffstat (limited to 'machine')
0 files changed, 0 insertions, 0 deletions