From: Andrew Waterman Date: Thu, 17 Mar 2016 06:43:33 +0000 (-0700) Subject: Update definition of base field in misa register X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=94c7f5adbeecf8b69ca848893032eb18f7e4bd76;p=riscv-isa-sim.git Update definition of base field in misa register --- diff --git a/riscv/processor.cc b/riscv/processor.cc index f9d48b0..3b834c5 100644 --- a/riscv/processor.cc +++ b/riscv/processor.cc @@ -67,7 +67,7 @@ void processor_t::parse_isa_string(const char* str) isa = reg_t(2) << 62; if (strncmp(p, "rv32", 4) == 0) - max_xlen = 32, isa = 0, p += 4; + max_xlen = 32, isa = reg_t(1) << 30, p += 4; else if (strncmp(p, "rv64", 4) == 0) p += 4; else if (strncmp(p, "rv", 2) == 0) @@ -105,11 +105,6 @@ void processor_t::parse_isa_string(const char* str) if (supports_extension('D') && !supports_extension('F')) bad_isa_string(str); - // if we have IMAFD, advertise G, too - if (supports_extension('I') && supports_extension('M') && - supports_extension('A') && supports_extension('D')) - isa |= 1L << ('g' - 'a'); - // advertise support for supervisor and user modes isa |= 1L << ('s' - 'a'); isa |= 1L << ('u' - 'a');