aboutsummaryrefslogtreecommitdiff
path: root/pk/boot.h
diff options
context:
space:
mode:
authorLuís Marques <luismarques@lowrisc.org>2019-10-22 17:56:54 +0100
committerAndrew Waterman <andrew@sifive.com>2019-10-22 09:56:53 -0700
commit99d6d0a93f9c83b63343a00693d5085e3949fe1a (patch)
tree2be05e20bf3956c1578bd32055c6195117087b85 /pk/boot.h
parent78e61baf432bd2d796c5b1e0498af363967322f4 (diff)
downloadriscv-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.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/pk/boot.h b/pk/boot.h
index f16ab15..f8bc51c 100644
--- a/pk/boot.h
+++ b/pk/boot.h
@@ -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;