aboutsummaryrefslogtreecommitdiff
path: root/disas
diff options
context:
space:
mode:
authorAleksandar Markovic <amarkovic@wavecomp.com>2018-12-26 18:35:52 +0100
committerAleksandar Markovic <amarkovic@wavecomp.com>2019-01-03 17:52:52 +0100
commit68d80fd58f374ed077f343e1397239717fea262e (patch)
treee839ad7f3e7dc13495995cfbc1b24cff95ccb6f7 /disas
parenta21e052013bf0d9ff3736b694cf0210b4b173353 (diff)
downloadqemu-68d80fd58f374ed077f343e1397239717fea262e.zip
qemu-68d80fd58f374ed077f343e1397239717fea262e.tar.gz
qemu-68d80fd58f374ed077f343e1397239717fea262e.tar.bz2
disas: nanoMIPS: Rename the decoder of 'gpr1' gpr encoding type
Rename the decoder of 'gpr1' gpr encoding type in nanoMIPS disassembler. Reviewed-by: Aleksandar Rikalo <arikalo@wavecomp.com> Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>
Diffstat (limited to 'disas')
-rw-r--r--disas/nanomips.cpp4
-rw-r--r--disas/nanomips.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/disas/nanomips.cpp b/disas/nanomips.cpp
index fe0c4af..6f15821 100644
--- a/disas/nanomips.cpp
+++ b/disas/nanomips.cpp
@@ -389,7 +389,7 @@ uint64 NMD::decode_gpr_gpr3_src_store(uint64 d)
}
-uint64 NMD::encode_rd1_from_rd(uint64 d)
+uint64 NMD::decode_gpr_gpr1(uint64 d)
{
static uint64 register_list[] = { 4, 5 };
return renumber_registers(d, register_list,
@@ -10465,7 +10465,7 @@ std::string NMD::MOVE_BALC(uint64 instruction)
uint64 rd1_value = extract_rdl_25_24(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 rd1 = GPR(decode_gpr_gpr1(rd1_value));
std::string rtz4 = GPR(decode_gpr_gpr4_zero(rtz4_value));
std::string s = ADDRESS(encode_s_from_address(s_value), 4);
diff --git a/disas/nanomips.h b/disas/nanomips.h
index 9df1ab2..d6a6e3f 100644
--- a/disas/nanomips.h
+++ b/disas/nanomips.h
@@ -107,7 +107,7 @@ private:
size_t register_list_size);
uint64 decode_gpr_gpr3(uint64 d);
uint64 decode_gpr_gpr3_src_store(uint64 d);
- uint64 encode_rd1_from_rd(uint64 d);
+ uint64 decode_gpr_gpr1(uint64 d);
uint64 decode_gpr_gpr4_zero(uint64 d);
uint64 decode_gpr_gpr4(uint64 d);
uint64 decode_gpr_gpr2_reg1(uint64 d);