Skip to content

Commit

Permalink
Add HPPA to options
Browse files Browse the repository at this point in the history
  • Loading branch information
R33v0LT committed Mar 4, 2024
1 parent 8aa52f4 commit 938d026
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 28 deletions.
28 changes: 0 additions & 28 deletions arch/HPPA/HPPADisassembler.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,34 +163,6 @@ static int extract_5_store(unsigned word)
return low_sign_extend(word & MASK_5, 5);
}

/* Extract the immediate field from a break instruction. */

static unsigned extract_5r_store(unsigned word)
{
return (word & MASK_5);
}

/* Extract the immediate field from a {sr}sm instruction. */

static unsigned extract_5R_store(unsigned word)
{
return (word >> 16 & MASK_5);
}

/* Extract the 10 bit immediate field from a {sr}sm instruction. */

static unsigned extract_10U_store(unsigned word)
{
return (word >> 16 & MASK_10);
}

/* Extract the immediate field from a bb instruction. */

static unsigned extract_5Q_store(unsigned word)
{
return (word >> 21 & MASK_5);
}

/* Extract an 11 bit immediate field. */

static int extract_11(unsigned word)
Expand Down
3 changes: 3 additions & 0 deletions suite/cstest/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ static single_dict arches[] = {
{"CS_MODE_TRICORE_161", CS_OPT_MODE, CS_MODE_TRICORE_161},
{"CS_MODE_TRICORE_162", CS_OPT_MODE, CS_MODE_TRICORE_162},
{"CS_OPT_UNSIGNED", CS_OPT_UNSIGNED, CS_OPT_ON},
{"CS_MODE_HPPA_20", CS_OPT_MODE, CS_MODE_HPPA_20},
{"CS_MODE_HPPA_20W", CS_OPT_MODE, CS_MODE_HPPA_20W},
{"CS_MODE_HPPA_11", CS_OPT_MODE, CS_MODE_HPPA_11},
};

static int counter;
Expand Down

0 comments on commit 938d026

Please sign in to comment.