Skip to content

Commit

Permalink
disas/nanomips: Remove helper methods from class
Browse files Browse the repository at this point in the history
Helper methods from NMD class like NMD::renumber_registers,
NMD::decode_gpr_gpr4... etc. are removed from the class. They're now
declared global static functions.

Following helper methods have been deleted because they're not used by
the nanomips disassembler:
- NMD::encode_msbd_from_pos_and_size,
- NMD::encode_s_from_s_hi,
- NMD::neg_copy

Global functions used by those methods:
- nanomips_dis
- sign_extend
- extract_bits
have also been defined as static global functions.

Signed-off-by: Milica Lazarevic <milica.lazarevic@syrmia.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220912122635.74032-6-milica.lazarevic@syrmia.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
  • Loading branch information
milica-lazarevic authored and philmd committed Oct 31, 2022
1 parent 9972c8f commit 2dc0c17
Show file tree
Hide file tree
Showing 2 changed files with 154 additions and 318 deletions.

0 comments on commit 2dc0c17

Please sign in to comment.