Skip to contentSkip to conversation

target/arm: Drop unused AARCh64DecodeTable typedefs

PATCH In review Peter Maydell 2 participants 2 messages Jan 28, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target/arm: Drop unused AARCh64DecodeTable typedefs

We removed the old table-based decoder in favour of decodetree, but we left a couple of typedefs that are now unused; delete them.

---
 target/arm/tcg/translate-a64.c | 11 -----------
 1 file changed, 11 deletions(-)
target/arm/tcg/translate-a64.c +0 -11
index bd814849c19..155169aeafd 100644
@@ -75,17 +75,6 @@ static int scale_by_log2_tag_granule(DisasContext *s, int x)
 #include "decode-sme-fa64.c.inc"
 #include "decode-a64.c.inc"
 
-/* Table based decoder typedefs - used when the relevant bits for decode
- * are too awkwardly scattered across the instruction (eg SIMD).
- */
-typedef void AArch64DecodeFn(DisasContext *s, uint32_t insn);
-
-typedef struct AArch64DecodeTable {
-    uint32_t pattern;
-    uint32_t mask;
-    AArch64DecodeFn *disas_fn;
-} AArch64DecodeTable;
-
 /* initialize TCG globals.  */
 void a64_translate_init(void)
 {
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Peter Maydell

We removed the old table-based decoder in favour of decodetree, but we left a couple of typedefs that are now unused; delete them.

---
  target/arm/tcg/translate-a64.c | 11 -----------
  1 file changed, 11 deletions(-)

Oops.

r~

Quoted 23 lines
target/arm/tcg/translate-a64.c +0 -11
index bd814849c19..155169aeafd 100644
@@ -75,17 +75,6 @@ static int scale_by_log2_tag_granule(DisasContext *s, int x)
  #include "decode-sme-fa64.c.inc"
  #include "decode-a64.c.inc"
 
-/* Table based decoder typedefs - used when the relevant bits for decode
- * are too awkwardly scattered across the instruction (eg SIMD).
- */
-typedef void AArch64DecodeFn(DisasContext *s, uint32_t insn);
-
-typedef struct AArch64DecodeTable {
-    uint32_t pattern;
-    uint32_t mask;
-    AArch64DecodeFn *disas_fn;
-} AArch64DecodeTable;
-
  /* initialize TCG globals.  */
  void a64_translate_init(void)
  {