Updated repo dependency. Minor fixes. PiperOrigin-RevId: 673073721 Change-Id: I4d852d432140a30f3cc51a7c9fa02f5b65f0228d
diff --git a/repos.bzl b/repos.bzl index 4c8387c..b7f7575 100644 --- a/repos.bzl +++ b/repos.bzl
@@ -22,7 +22,7 @@ if not native.existing_rule("com_google_mpact-sim"): http_archive( name = "com_google_mpact-sim", - sha256 = "22ed3ca15ab789cb073eec8a013449d253aef08da3fac9c0ebd9e66c9282d297", - strip_prefix = "mpact-sim-35c2890d29599f72267907fc754ea56243898797", - url = "https://github.com/google/mpact-sim/archive/35c2890d29599f72267907fc754ea56243898797.tar.gz", + sha256 = "c1b76e8d8ea328a7db462d317192cc02e5659cdd8a9850c7fc53d72942255c80", + strip_prefix = "mpact-sim-1f895451f0050e6eda80fedb1d5ccd57b78b35cd", + url = "https://github.com/google/mpact-sim/archive/1f895451f0050e6eda80fedb1d5ccd57b78b35cd.tar.gz", )
diff --git a/riscv/riscv32gzb_encoding.h b/riscv/riscv32gzb_encoding.h index 9b36852..96e1640 100644 --- a/riscv/riscv32gzb_encoding.h +++ b/riscv/riscv32gzb_encoding.h
@@ -24,6 +24,7 @@ #include "riscv/riscv32gzb_decoder.h" #include "riscv/riscv32gzb_enums.h" #include "riscv/riscv_encoding_common.h" +#include "riscv/riscv_getter_helpers.h" #include "riscv/riscv_getters.h" #include "riscv/riscv_state.h" @@ -41,7 +42,7 @@ ~RiscV32GZBEncoding() override; void ParseInstruction(uint32_t inst_word); - OpcodeEnum GetOpcode(SlotEnum, int) { return opcode_; } + OpcodeEnum GetOpcode(SlotEnum, int) override { return opcode_; } FormatEnum GetFormat(SlotEnum, int) { return format_; } PredicateOperandInterface *GetPredicate(SlotEnum, int, OpcodeEnum, @@ -55,7 +56,7 @@ ResourceOperandInterface *GetComplexResourceOperand( SlotEnum, int, OpcodeEnum, ComplexResourceEnum resource, int begin, - int end); + int end) override; SourceOperandInterface *GetSource(SlotEnum, int, OpcodeEnum, SourceOpEnum op, int source_no) override;
diff --git a/riscv/riscv64gzb_encoding.h b/riscv/riscv64gzb_encoding.h index 63030bb..007e7bc 100644 --- a/riscv/riscv64gzb_encoding.h +++ b/riscv/riscv64gzb_encoding.h
@@ -41,7 +41,7 @@ ~RiscV64GZBEncoding() override; void ParseInstruction(uint32_t inst_word); - OpcodeEnum GetOpcode(SlotEnum, int) { return opcode_; } + OpcodeEnum GetOpcode(SlotEnum, int) override { return opcode_; } FormatEnum GetFormat(SlotEnum, int) { return format_; } PredicateOperandInterface *GetPredicate(SlotEnum, int, OpcodeEnum, @@ -55,7 +55,7 @@ ResourceOperandInterface *GetComplexResourceOperand( SlotEnum, int, OpcodeEnum, ComplexResourceEnum resource, int begin, - int end); + int end) override; SourceOperandInterface *GetSource(SlotEnum, int, OpcodeEnum, SourceOpEnum op, int source_no) override;
diff --git a/riscv/riscv64gzb_vec_encoding.h b/riscv/riscv64gzb_vec_encoding.h index 60f106b..3a2e219 100644 --- a/riscv/riscv64gzb_vec_encoding.h +++ b/riscv/riscv64gzb_vec_encoding.h
@@ -41,7 +41,7 @@ ~RiscV64GZBVecEncoding() override; void ParseInstruction(uint32_t inst_word); - OpcodeEnum GetOpcode(SlotEnum, int) { return opcode_; } + OpcodeEnum GetOpcode(SlotEnum, int) override { return opcode_; } FormatEnum GetFormat(SlotEnum, int) { return format_; } PredicateOperandInterface *GetPredicate(SlotEnum, int, OpcodeEnum, @@ -55,7 +55,7 @@ ResourceOperandInterface *GetComplexResourceOperand( SlotEnum, int, OpcodeEnum, ComplexResourceEnum resource, int begin, - int end); + int end) override; SourceOperandInterface *GetSource(SlotEnum, int, OpcodeEnum, SourceOpEnum op, int source_no) override;
diff --git a/riscv/riscv_getters_zba.h b/riscv/riscv_getters_zba.h index 6557225..a7d06e3 100644 --- a/riscv/riscv_getters_zba.h +++ b/riscv/riscv_getters_zba.h
@@ -40,11 +40,11 @@ RiscVEncodingCommon *common) { // Source operand getters. Insert(getter_map, *Enum::kConst1, - [common]() { return new generic::IntLiteralOperand<1>(); }); + []() { return new generic::IntLiteralOperand<1>(); }); Insert(getter_map, *Enum::kConst2, - [common]() { return new generic::IntLiteralOperand<2>(); }); + []() { return new generic::IntLiteralOperand<2>(); }); Insert(getter_map, *Enum::kConst3, - [common]() { return new generic::IntLiteralOperand<3>(); }); + []() { return new generic::IntLiteralOperand<3>(); }); } template <typename Enum, typename Extractors, typename IntRegister,