diff options
author | Rupert Swarbrick <rswarbrick@gmail.com> | 2022-03-03 20:06:57 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-03 12:06:57 -0800 |
commit | 56054a2d97cae1f251d00d1468ba82e3b07955f1 (patch) | |
tree | 435772e862ad79d5c6a82ad19111cd3995dfcf53 /riscv/processor.h | |
parent | 5dd71bce9c7b200e21f92ba95f4b889b21ae5d46 (diff) | |
download | spike-56054a2d97cae1f251d00d1468ba82e3b07955f1.zip spike-56054a2d97cae1f251d00d1468ba82e3b07955f1.tar.gz spike-56054a2d97cae1f251d00d1468ba82e3b07955f1.tar.bz2 |
Change some methods to take a const isa_parser_t (#939)
No functional change, but this is needed for a following refactor
where we're passing it around const.
Diffstat (limited to 'riscv/processor.h')
-rw-r--r-- | riscv/processor.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/riscv/processor.h b/riscv/processor.h index 9833cfa..05c55ce 100644 --- a/riscv/processor.h +++ b/riscv/processor.h @@ -313,8 +313,8 @@ class isa_parser_t { public: isa_parser_t(const char* str); ~isa_parser_t(){}; - unsigned get_max_xlen() { return max_xlen; } - std::string get_isa_string() { return isa_string; } + unsigned get_max_xlen() const { return max_xlen; } + std::string get_isa_string() const { return isa_string; } bool extension_enabled(unsigned char ext) const { if (ext >= 'A' && ext <= 'Z') return (max_isa >> (ext - 'A')) & 1; |