[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v6 19/26] disas: nanoMIPS: Rename the decoder of 'gp
From: |
Aleksandar Markovic |
Subject: |
[Qemu-devel] [PATCH v6 19/26] disas: nanoMIPS: Rename the decoder of 'gpr2.reg1' gpr encoding type |
Date: |
Thu, 27 Dec 2018 15:22:59 +0100 |
From: Aleksandar Markovic <address@hidden>
Rename the decoder of 'gpr2.reg1' gpr encoding type in nanoMIPS
disassembler.
Signed-off-by: Aleksandar Markovic <address@hidden>
---
disas/nanomips.cpp | 6 +++---
disas/nanomips.h | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/disas/nanomips.cpp b/disas/nanomips.cpp
index 6578aa3..80f50fc 100644
--- a/disas/nanomips.cpp
+++ b/disas/nanomips.cpp
@@ -467,7 +467,7 @@ uint64 NMD::decode_gpr_gpr4(uint64 d)
}
-uint64 NMD::encode_rd2_reg1(uint64 d)
+uint64 NMD::decode_gpr_gpr2_reg1(uint64 d)
{
static uint64 register_list[] = { 4, 5, 6, 7 };
return renumber_registers(d, register_list,
@@ -10441,7 +10441,7 @@ std::string NMD::MOVEP(uint64 instruction)
uint64 rd2_value = extract_rd2_3_8(instruction);
uint64 rsz4_value = extract_rsz4_4_2_1_0(instruction);
- std::string rd2 = GPR(encode_rd2_reg1(rd2_value));
+ std::string rd2 = GPR(decode_gpr_gpr2_reg1(rd2_value));
std::string re2 = GPR(encode_rd2_reg2(rd2_value));
/* !!!!!!!!!! - no conversion function */
std::string rsz4 = GPR(decode_gpr_gpr4_zero(rsz4_value));
@@ -10470,7 +10470,7 @@ std::string NMD::MOVEP_REV_(uint64 instruction)
std::string rs4 = GPR(decode_gpr_gpr4(rs4_value));
std::string rt4 = GPR(decode_gpr_gpr4(rt4_value));
- std::string rd2 = GPR(encode_rd2_reg1(rd2_value));
+ std::string rd2 = GPR(decode_gpr_gpr2_reg1(rd2_value));
std::string rs2 = GPR(encode_rd2_reg2(rd2_value));
/* !!!!!!!!!! - no conversion function */
diff --git a/disas/nanomips.h b/disas/nanomips.h
index 917f33e..4c31392 100644
--- a/disas/nanomips.h
+++ b/disas/nanomips.h
@@ -110,7 +110,7 @@ private:
uint64 encode_rd1_from_rd(uint64 d);
uint64 decode_gpr_gpr4_zero(uint64 d);
uint64 decode_gpr_gpr4(uint64 d);
- uint64 encode_rd2_reg1(uint64 d);
+ uint64 decode_gpr_gpr2_reg1(uint64 d);
uint64 encode_rd2_reg2(uint64 d);
uint64 copy(uint64 d);
--
2.7.4
- [Qemu-devel] [PATCH v6 06/26] disas: nanoMIPS: Fix an FP-related misnomer 1, (continued)
- [Qemu-devel] [PATCH v6 06/26] disas: nanoMIPS: Fix an FP-related misnomer 1, Aleksandar Markovic, 2018/12/27
- [Qemu-devel] [PATCH v6 03/26] disas: nanoMIPS: Fix a function misnomer, Aleksandar Markovic, 2018/12/27
- [Qemu-devel] [PATCH v6 08/26] disas: nanoMIPS: Fix an FP-related misnomer 3, Aleksandar Markovic, 2018/12/27
- [Qemu-devel] [PATCH v6 11/26] disas: nanoMIPS: Rename the decoder of 'gpr3' gpr encoding type, Aleksandar Markovic, 2018/12/27
- [Qemu-devel] [PATCH v6 07/26] disas: nanoMIPS: Fix an FP-related misnomer 2, Aleksandar Markovic, 2018/12/27
- [Qemu-devel] [PATCH v6 09/26] disas: nanoMIPS: Name more functions in a more descriptive way, Aleksandar Markovic, 2018/12/27
- [Qemu-devel] [PATCH v6 16/26] disas: nanoMIPS: Comment the decoder of 'gpr4' gpr encoding type, Aleksandar Markovic, 2018/12/27
- [Qemu-devel] [PATCH v6 18/26] disas: nanoMIPS: Comment the decoder of 'gpr4.zero' gpr encoding type, Aleksandar Markovic, 2018/12/27
- [Qemu-devel] [PATCH v6 20/26] disas: nanoMIPS: Comment the decoder of 'gpr2.reg1' gpr encoding type, Aleksandar Markovic, 2018/12/27
- [Qemu-devel] [PATCH v6 12/26] disas: nanoMIPS: Comment the decoder of 'gpr3' gpr encoding type, Aleksandar Markovic, 2018/12/27
- [Qemu-devel] [PATCH v6 19/26] disas: nanoMIPS: Rename the decoder of 'gpr2.reg1' gpr encoding type,
Aleksandar Markovic <=
- [Qemu-devel] [PATCH v6 13/26] disas: nanoMIPS: Rename the decoder of 'gpr3.src.store' gpr encoding type, Aleksandar Markovic, 2018/12/27
- [Qemu-devel] [PATCH v6 14/26] disas: nanoMIPS: Comment the decoder of 'gpr3.src.store' gpr encoding type, Aleksandar Markovic, 2018/12/27
- [Qemu-devel] [PATCH v6 17/26] disas: nanoMIPS: Rename the decoder of 'gpr4.zero' gpr encoding type, Aleksandar Markovic, 2018/12/27
- [Qemu-devel] [PATCH v6 25/26] disas: nanoMIPS: Reorder declarations and definitions of gpr decoders, Aleksandar Markovic, 2018/12/27
- [Qemu-devel] [PATCH v6 21/26] disas: nanoMIPS: Rename the decoder of 'gpr2.reg2' gpr encoding type, Aleksandar Markovic, 2018/12/27
- [Qemu-devel] [PATCH v6 23/26] disas: nanoMIPS: Rename the decoder of 'gpr1' gpr encoding type, Aleksandar Markovic, 2018/12/27
- [Qemu-devel] [PATCH v6 15/26] disas: nanoMIPS: Rename the decoder of 'gpr4' gpr encoding type, Aleksandar Markovic, 2018/12/27
- [Qemu-devel] [PATCH v6 22/26] disas: nanoMIPS: Comment the decoder of 'gpr2.reg2' gpr encoding type, Aleksandar Markovic, 2018/12/27
- [Qemu-devel] [PATCH v6 10/26] disas: nanoMIPS: Fix order of more invocations, Aleksandar Markovic, 2018/12/27
- [Qemu-devel] [PATCH v6 26/26] disas: nanoMIPS: Add a note on documentation, Aleksandar Markovic, 2018/12/27