Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
R33v0LT committed Mar 4, 2024
1 parent 689c665 commit c0bbf93
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions arch/HPPA/HPPADisassembler.c
Original file line number Diff line number Diff line change
Expand Up @@ -1686,7 +1686,6 @@ static bool decodeShexdep0(cs_struct *ud, MCInst *MI, uint32_t insn) {
uint32_t cp = GET_BIT(insn, 20);
uint32_t cpos = GET_FIELD(insn, 22, 26);
uint32_t sa = 63 - ((cp << 5) | cpos);
// uint32_t d = GET_BIT(insn, 22);
uint32_t r1 = GET_FIELD(insn, 11, 15);
uint32_t r2 = GET_FIELD(insn, 6, 10);
uint32_t clen_t = GET_FIELD(insn, 27, 31);
Expand Down Expand Up @@ -2739,7 +2738,6 @@ static bool decodeCopr(cs_struct *ud, MCInst *MI, uint32_t insn) {
}
else if (class == 2) {
uint32_t n = GET_BIT(insn, 26);
// uint32_t cond = GET_FIELD(insn, 27, 31);
subop = GET_FIELD(insn, 16, 18);
if (n == 0) {
CREATE_FPR_REG(MI, r1);
Expand Down Expand Up @@ -3562,7 +3560,6 @@ static bool getInstruction(cs_struct *ud, const uint8_t *code, size_t code_len,
memset(HPPA_EXT_REF(MI), 0, sizeof(MI->hppa_ext));

uint32_t full_insn = readBytes32(MI, code);
// printf("full_insn: %x\n", full_insn);
uint8_t opcode = full_insn >> 26;

if (MODE_IS_HPPA_20(ud->mode)) {
Expand Down
3 changes: 0 additions & 3 deletions arch/HPPA/HPPAInstPrinter.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ static void set_op_mem(cs_hppa *hppa, uint32_t base, uint32_t space, cs_ac_type

struct pa_insn_fmt
{
// unsigned long int match;
// unsigned long int mask;
hppa_insn insn_id;
const char *format;
bool is_alternative; ///< true if some completer affects the instruction format
Expand Down Expand Up @@ -505,7 +503,6 @@ static void print_modifiers(MCInst *MI, struct SStream *O)

void HPPA_printInst(MCInst *MI, struct SStream *O, void *Info)
{
// cs_insn insn;
cs_hppa hppa;

/* set pubOpcode as instruction id */
Expand Down

0 comments on commit c0bbf93

Please sign in to comment.