[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 28/41] disas: nanoMIPS: Rename the decoder of 'gpr4.z
From: |
Aleksandar Markovic |
Subject: |
[Qemu-devel] [PULL 28/41] disas: nanoMIPS: Rename the decoder of 'gpr4.zero' gpr encoding type |
Date: |
Fri, 28 Dec 2018 10:25:35 +0100 |
From: Aleksandar Markovic <address@hidden>
Rename the decoder of 'gpr4.zero' gpr encoding type in nanoMIPS
disassembler.
Reviewed-by: Aleksandar Rikalo <address@hidden>
Signed-off-by: Aleksandar Markovic <address@hidden>
---
disas/nanomips.cpp | 10 +++++-----
disas/nanomips.h | 2 +-
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/disas/nanomips.cpp b/disas/nanomips.cpp
index a086f65..66b1223 100644
--- a/disas/nanomips.cpp
+++ b/disas/nanomips.cpp
@@ -397,7 +397,7 @@ uint64 NMD::encode_rd1_from_rd(uint64 d)
}
-uint64 NMD::encode_gpr4_zero(uint64 d)
+uint64 NMD::decode_gpr_gpr4_zero(uint64 d)
{
static uint64 register_list[] = { 8, 9, 10, 0, 4, 5, 6, 7,
16, 17, 18, 19, 20, 21, 22, 23 };
@@ -10395,7 +10395,7 @@ std::string NMD::MOVE_BALC(uint64 instruction)
int64 s_value = extract_s__se21_0_20_to_1_s1(instruction);
std::string rd1 = GPR(encode_rd1_from_rd(rd1_value));
- std::string rtz4 = GPR(encode_gpr4_zero(rtz4_value));
+ std::string rtz4 = GPR(decode_gpr_gpr4_zero(rtz4_value));
std::string s = ADDRESS(encode_s_from_address(s_value), 4);
return img::format("MOVE.BALC %s, %s, %s", rd1, rtz4, s);
@@ -10421,8 +10421,8 @@ std::string NMD::MOVEP(uint64 instruction)
std::string rd2 = GPR(encode_rd2_reg1(rd2_value));
std::string re2 = GPR(encode_rd2_reg2(rd2_value));
/* !!!!!!!!!! - no conversion function */
- std::string rsz4 = GPR(encode_gpr4_zero(rsz4_value));
- std::string rtz4 = GPR(encode_gpr4_zero(rtz4_value));
+ std::string rsz4 = GPR(decode_gpr_gpr4_zero(rsz4_value));
+ std::string rtz4 = GPR(decode_gpr_gpr4_zero(rtz4_value));
return img::format("MOVEP %s, %s, %s, %s", rd2, re2, rsz4, rtz4);
/* hand edited */
@@ -15288,7 +15288,7 @@ std::string NMD::SW_4X4_(uint64 instruction)
uint64 rs4_value = extract_rs4_4_2_1_0(instruction);
uint64 u_value = extract_u_3_8__s2(instruction);
- std::string rtz4 = GPR(encode_gpr4_zero(rtz4_value));
+ std::string rtz4 = GPR(decode_gpr_gpr4_zero(rtz4_value));
std::string u = IMMEDIATE(copy(u_value));
std::string rs4 = GPR(decode_gpr_gpr4(rs4_value));
diff --git a/disas/nanomips.h b/disas/nanomips.h
index 109b131..c1d3a3b 100644
--- a/disas/nanomips.h
+++ b/disas/nanomips.h
@@ -108,7 +108,7 @@ private:
uint64 decode_gpr_gpr3(uint64 d);
uint64 decode_gpr_gpr3_src_store(uint64 d);
uint64 encode_rd1_from_rd(uint64 d);
- uint64 encode_gpr4_zero(uint64 d);
+ uint64 decode_gpr_gpr4_zero(uint64 d);
uint64 decode_gpr_gpr4(uint64 d);
uint64 encode_rd2_reg1(uint64 d);
uint64 encode_rd2_reg2(uint64 d);
--
2.7.4
- [Qemu-devel] [PULL 09/41] target/mips: Support R5900 three-operand MADD and MADDU instructions, (continued)
- [Qemu-devel] [PULL 09/41] target/mips: Support R5900 three-operand MADD and MADDU instructions, Aleksandar Markovic, 2018/12/28
- [Qemu-devel] [PULL 06/41] target/mips: MXU: Add missing opcodes/decoding for LX* instructions, Aleksandar Markovic, 2018/12/28
- [Qemu-devel] [PULL 10/41] target/mips: Support R5900 three-operand MADD1 and MADDU1 instructions, Aleksandar Markovic, 2018/12/28
- [Qemu-devel] [PULL 08/41] target/mips: MXU: Improve the comment containing MXU overview, Aleksandar Markovic, 2018/12/28
- [Qemu-devel] [PULL 13/41] disas: nanoMIPS: Remove functions that are not used, Aleksandar Markovic, 2018/12/28
- [Qemu-devel] [PULL 25/41] disas: nanoMIPS: Comment the decoder of 'gpr3.src.store' gpr encoding type, Aleksandar Markovic, 2018/12/28
- [Qemu-devel] [PULL 23/41] disas: nanoMIPS: Comment the decoder of 'gpr3' gpr encoding type, Aleksandar Markovic, 2018/12/28
- [Qemu-devel] [PULL 26/41] disas: nanoMIPS: Rename the decoder of 'gpr4' gpr encoding type, Aleksandar Markovic, 2018/12/28
- [Qemu-devel] [PULL 38/41] tests/tcg: mips: Test R5900 three-operand MADD, Aleksandar Markovic, 2018/12/28
- [Qemu-devel] [PULL 14/41] disas: nanoMIPS: Fix a function misnomer, Aleksandar Markovic, 2018/12/28
- [Qemu-devel] [PULL 28/41] disas: nanoMIPS: Rename the decoder of 'gpr4.zero' gpr encoding type,
Aleksandar Markovic <=
- [Qemu-devel] [PULL 27/41] disas: nanoMIPS: Comment the decoder of 'gpr4' gpr encoding type, Aleksandar Markovic, 2018/12/28
- [Qemu-devel] [PULL 21/41] disas: nanoMIPS: Fix order of more invocations, Aleksandar Markovic, 2018/12/28
- [Qemu-devel] [PULL 24/41] disas: nanoMIPS: Rename the decoder of 'gpr3.src.store' gpr encoding type, Aleksandar Markovic, 2018/12/28
- [Qemu-devel] [PULL 20/41] disas: nanoMIPS: Name more functions in a more descriptive way, Aleksandar Markovic, 2018/12/28
- [Qemu-devel] [PULL 19/41] disas: nanoMIPS: Fix an FP-related misnomer 3, Aleksandar Markovic, 2018/12/28
- [Qemu-devel] [PULL 18/41] disas: nanoMIPS: Fix an FP-related misnomer 2, Aleksandar Markovic, 2018/12/28
- [Qemu-devel] [PULL 22/41] disas: nanoMIPS: Rename the decoder of 'gpr3' gpr encoding type, Aleksandar Markovic, 2018/12/28
- [Qemu-devel] [PULL 16/41] disas: nanoMIPS: Name some functions in a more descriptive way, Aleksandar Markovic, 2018/12/28
- [Qemu-devel] [PULL 17/41] disas: nanoMIPS: Fix an FP-related misnomer 1, Aleksandar Markovic, 2018/12/28
- [Qemu-devel] [PULL 15/41] disas: nanoMIPS: Fix order of some invocations, Aleksandar Markovic, 2018/12/28