diff options
author | Aleksandar Markovic <amarkovic@wavecomp.com> | 2018-12-26 14:30:39 +0100 |
---|---|---|
committer | Aleksandar Markovic <amarkovic@wavecomp.com> | 2019-01-03 17:52:52 +0100 |
commit | 4671783ac144c2ea75f983a743678322c5ba1227 (patch) | |
tree | 2ee3dbde17146faaf2f21bf31a42c008d03d6bf7 /disas | |
parent | afd47cef11f84b070d760f2270c291df6e762151 (diff) | |
download | qemu-4671783ac144c2ea75f983a743678322c5ba1227.zip qemu-4671783ac144c2ea75f983a743678322c5ba1227.tar.gz qemu-4671783ac144c2ea75f983a743678322c5ba1227.tar.bz2 |
disas: nanoMIPS: Rename the decoder of 'gpr2.reg1' gpr encoding type
Rename the decoder of 'gpr2.reg1' 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.cpp | 6 | ||||
-rw-r--r-- | disas/nanomips.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/disas/nanomips.cpp b/disas/nanomips.cpp index de96125..b0d0cf8 100644 --- a/disas/nanomips.cpp +++ b/disas/nanomips.cpp @@ -468,7 +468,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, @@ -10445,7 +10445,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)); @@ -10474,7 +10474,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 c1d3a3b..d928757 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); |