From 40c9d678ef76a124a7d9c1a269d5d078a7dc588e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A0rius=20Mont=C3=B3n?= Date: Mon, 26 Apr 2021 00:38:47 +0200 Subject: [PATCH] code clean-up (using clang-tidy) --- src/A_extension.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/A_extension.cpp b/src/A_extension.cpp index d1f1a00..c6faa3d 100644 --- a/src/A_extension.cpp +++ b/src/A_extension.cpp @@ -83,7 +83,7 @@ bool A_extension::Exec_A_LR() { } bool A_extension::Exec_A_SC() { - uint32_t mem_addr = 0; + uint32_t mem_addr; int rd, rs1, rs2; uint32_t data; @@ -110,7 +110,7 @@ bool A_extension::Exec_A_SC() { } bool A_extension::Exec_A_AMOSWAP() const { - uint32_t mem_addr = 0; + uint32_t mem_addr; int rd, rs1, rs2; uint32_t data; uint32_t aux; @@ -138,7 +138,7 @@ bool A_extension::Exec_A_AMOSWAP() const { } bool A_extension::Exec_A_AMOADD() const { - uint32_t mem_addr = 0; + uint32_t mem_addr; int rd, rs1, rs2; uint32_t data; @@ -166,7 +166,7 @@ bool A_extension::Exec_A_AMOADD() const { } bool A_extension::Exec_A_AMOXOR() const { - uint32_t mem_addr = 0; + uint32_t mem_addr; int rd, rs1, rs2; uint32_t data; @@ -193,7 +193,7 @@ bool A_extension::Exec_A_AMOXOR() const { return true; } bool A_extension::Exec_A_AMOAND() const { - uint32_t mem_addr = 0; + uint32_t mem_addr; int rd, rs1, rs2; uint32_t data; @@ -221,7 +221,7 @@ bool A_extension::Exec_A_AMOAND() const { } bool A_extension::Exec_A_AMOOR() const { - uint32_t mem_addr = 0; + uint32_t mem_addr; int rd, rs1, rs2; uint32_t data; @@ -248,7 +248,7 @@ bool A_extension::Exec_A_AMOOR() const { } bool A_extension::Exec_A_AMOMIN() const { - uint32_t mem_addr = 0; + uint32_t mem_addr; int rd, rs1, rs2; uint32_t data; uint32_t aux; @@ -279,7 +279,7 @@ bool A_extension::Exec_A_AMOMIN() const { return true; } bool A_extension::Exec_A_AMOMAX() const { - uint32_t mem_addr = 0; + uint32_t mem_addr; int rd, rs1, rs2; uint32_t data; uint32_t aux; @@ -310,7 +310,7 @@ bool A_extension::Exec_A_AMOMAX() const { return true; } bool A_extension::Exec_A_AMOMINU() const { - uint32_t mem_addr = 0; + uint32_t mem_addr; int rd, rs1, rs2; uint32_t data; uint32_t aux; @@ -341,7 +341,7 @@ bool A_extension::Exec_A_AMOMINU() const { return true; } bool A_extension::Exec_A_AMOMAXU() const { - uint32_t mem_addr = 0; + uint32_t mem_addr; int rd, rs1, rs2; uint32_t data; uint32_t aux;