Skip to contentSkip to conversation

cris: remove unused cris_cond15 declarations

PATCH In review Michael Tokarev 2 participants 3 messages Mar 10, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cris: remove unused cris_cond15 declarations

---
 disas/cris.c              | 11 -----------
 target-cris/opcode-cris.h | 10 ----------
 2 files changed, 21 deletions(-)
disas/cris.c +0 -11
index 9dfb4e3..0fc7e54 100644
@@ -1214,17 +1214,6 @@ cris_cc_strings[] =
   "wf"
 };
 
-/* Different names and semantics for condition 1111 (0xf).  */
-const struct cris_cond15 cris_cond15s[] =
-{
-  /* FIXME: In what version did condition "ext" disappear?  */
-  {"ext", cris_ver_v0_3},
-  {"wf", cris_ver_v10},
-  {"sb", cris_ver_v32p},
-  {NULL, 0}
-};
-
-
 /*
  * Local variables:
  * eval: (c-set-style "gnu")
target-cris/opcode-cris.h +0 -10
index 779d4aa..e7ebb98 100644
@@ -108,16 +108,6 @@ struct cris_support_reg
 };
 extern const struct cris_support_reg cris_support_regs[];
 
-struct cris_cond15
-{
-  /* The name of the condition.  */
-  const char *const name;
-
-  /* What CPU version this condition name applies to.  */
-  enum cris_insn_version_usage applicable_version;
-};
-extern const struct cris_cond15 cris_conds15[];
-
 /* Opcode-dependent constants.  */
 #define AUTOINCR_BIT (0x04)
 
Signature · 1 line
2.1.4
Reviewed-by on v1 1/1
#1 lore raw

Am 10.03.2015 um 06:40 schrieb Michael Tokarev:

Quoted 38 lines
---
  disas/cris.c              | 11 -----------
  target-cris/opcode-cris.h | 10 ----------
  2 files changed, 21 deletions(-)
disas/cris.c +0 -11
index 9dfb4e3..0fc7e54 100644
@@ -1214,17 +1214,6 @@ cris_cc_strings[] =
    "wf"
  };
 
-/* Different names and semantics for condition 1111 (0xf).  */
-const struct cris_cond15 cris_cond15s[] =
-{
-  /* FIXME: In what version did condition "ext" disappear?  */
-  {"ext", cris_ver_v0_3},
-  {"wf", cris_ver_v10},
-  {"sb", cris_ver_v32p},
-  {NULL, 0}
-};
-
-
  /*
   * Local variables:
   * eval: (c-set-style "gnu")
target-cris/opcode-cris.h +0 -2
index 779d4aa..e7ebb98 100644
@@ -108,16 +108,6 @@ struct cris_support_reg
  };
  extern const struct cris_support_reg cris_support_regs[];
 
-struct cris_cond15
-{

target-cris/opcode-cris.h struct cris_support_reg · line 112

Quoted 10 lines
target-cris/opcode-cris.h +0 -8
-  /* The name of the condition.  */
-  const char *const name;
-
-  /* What CPU version this condition name applies to.  */
-  enum cris_insn_version_usage applicable_version;
-};
-extern const struct cris_cond15 cris_conds15[];
-
  /* Opcode-dependent constants.  */
  #define AUTOINCR_BIT (0x04)

There remains a comment in disas/cris.c referring to cris_conds15. Maybe you want to add that to your patch, too (keep my review then).

#2 lore raw

10.03.2015 10:12, Stefan Weil wrote:
[]

Quoted 2 lines

There remains a comment in disas/cris.c referring to cris_conds15. Maybe you want to add that to your patch, too (keep my review then).

Oh yeah, I overlooked it.

However maybe we should keep this somehow (maybe in a better comment in this cris_cc_strings[] place?). I'll leave this to Edgar.

Meanwhile I updated the patch adding removal of this variable reference from a comment in cris_cc_strings[] definition.

Thanks,

/mjt