diff options
author | Luís Marques <luismarques@lowrisc.org> | 2019-10-22 17:56:54 +0100 |
---|---|---|
committer | Andrew Waterman <andrew@sifive.com> | 2019-10-22 09:56:53 -0700 |
commit | 99d6d0a93f9c83b63343a00693d5085e3949fe1a (patch) | |
tree | 2be05e20bf3956c1578bd32055c6195117087b85 /pk/boot.h | |
parent | 78e61baf432bd2d796c5b1e0498af363967322f4 (diff) | |
download | riscv-pk-99d6d0a93f9c83b63343a00693d5085e3949fe1a.zip riscv-pk-99d6d0a93f9c83b63343a00693d5085e3949fe1a.tar.gz riscv-pk-99d6d0a93f9c83b63343a00693d5085e3949fe1a.tar.bz2 |
Make performance counters always 64 bits wide (#178)
This prevents the counters from easily overflowing for a 32-bit pk.
Diffstat (limited to 'pk/boot.h')
-rw-r--r-- | pk/boot.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -20,9 +20,9 @@ typedef struct { size_t brk_max; size_t mmap_max; size_t stack_top; - size_t time0; - size_t cycle0; - size_t instret0; + uint64_t time0; + uint64_t cycle0; + uint64_t instret0; } elf_info; extern elf_info current; |