Updating mpact_sim repo dependency. Minor formatting changes. PiperOrigin-RevId: 663794241 Change-Id: I7421b0f1cc2aa1acdc38997a153aec82a1ad193d
diff --git a/repos.bzl b/repos.bzl index a541ee0..5d5cdd9 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 = "4e1efebfe3f5ec174e3da000bae0065b84cac56404adda34f525692b73ec5b6c", - strip_prefix = "mpact-sim-7b5b946ea7e4940f53004be00973f0ae2850a560", - url = "https://github.com/google/mpact-sim/archive/7b5b946ea7e4940f53004be00973f0ae2850a560.tar.gz", + sha256 = "df4cf35db093bfc7e5a501937bb3965be4f43182925e593ece5784d7134f835f", + strip_prefix = "mpact-sim-ea1fac2805ffdc7a5177b0931291737430510ffd", + url = "https://github.com/google/mpact-sim/archive/ea1fac2805ffdc7a5177b0931291737430510ffd.tar.gz", )
diff --git a/riscv/riscv_top.cc b/riscv/riscv_top.cc index 036fbc0..4656d3c 100644 --- a/riscv/riscv_top.cc +++ b/riscv/riscv_top.cc
@@ -55,8 +55,6 @@ using ::mpact::sim::generic::ActionPointManagerBase; using ::mpact::sim::generic::BreakpointManager; -constexpr char kRiscVName[] = "RiscV"; - // Local helper function used to execute instructions. static inline bool ExecuteInstruction(Instruction *inst) { // The following code can be used to model stalls due to latency of operand
diff --git a/riscv/riscv_xstatus.h b/riscv/riscv_xstatus.h index 00c079f..f14724e 100644 --- a/riscv/riscv_xstatus.h +++ b/riscv/riscv_xstatus.h
@@ -130,7 +130,6 @@ buffer_mask_ |= BitMask << Shift; } - RiscVXlen xlen_; RiscVMIsa *misa_; uint64_t buffer_ = 0; uint64_t buffer_mask_ = 0;
diff --git a/riscv/test/riscv_vector_fp_unary_instructions_test.cc b/riscv/test/riscv_vector_fp_unary_instructions_test.cc index 8a5f43c..6fb2b30 100644 --- a/riscv/test/riscv_vector_fp_unary_instructions_test.cc +++ b/riscv/test/riscv_vector_fp_unary_instructions_test.cc
@@ -17,9 +17,7 @@ #include <algorithm> #include <cmath> #include <cstdint> -#include <cstring> #include <functional> -#include <ios> #include <limits> #include <string> #include <tuple> @@ -32,21 +30,19 @@ #include "absl/types/span.h" #include "googlemock/include/gmock/gmock.h" #include "mpact/sim/generic/instruction.h" -#include "mpact/sim/generic/operand_interface.h" #include "mpact/sim/generic/type_helpers.h" #include "riscv/riscv_csr.h" #include "riscv/riscv_fp_host.h" #include "riscv/riscv_fp_info.h" #include "riscv/riscv_fp_state.h" #include "riscv/riscv_register.h" -#include "riscv/riscv_vector_state.h" #include "riscv/test/riscv_vector_fp_test_utilities.h" #include "riscv/test/riscv_vector_instructions_test_base.h" namespace { using Instruction = ::mpact::sim::generic::Instruction; -using ::mpact::sim::generic::operator*; +using ::mpact::sim::generic::operator*; // NOLINT: used below (clang error). using ::mpact::sim::riscv::FPExceptions; // Functions to test. @@ -915,10 +911,6 @@ if (vs2 == 0.0) return std::make_tuple(vs2, 0); if (std::isnan(vs2) || (vs2 < 0.0)) { auto val = FPTypeInfo<T>::kCanonicalNaN; - uint32_t flags = 0; - if (!mpact::sim::generic::FPTypeInfo<T>::IsQNaN(vs2)) { - flags = (uint32_t)FPExceptions::kInvalidOp; - } return std::make_tuple(*reinterpret_cast<const T *>(&val), (uint32_t)FPExceptions::kInvalidOp); }