diff mbox

cris: remove unused cris_cond15 declarations

Message ID 1425966045-13510-1-git-send-email-mjt@msgid.tls.msk.ru
State New
Headers show

Commit Message

Michael Tokarev March 10, 2015, 5:40 a.m. UTC
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
 disas/cris.c              | 11 -----------
 target-cris/opcode-cris.h | 10 ----------
 2 files changed, 21 deletions(-)

Comments

Stefan Weil March 10, 2015, 7:12 a.m. UTC | #1
Am 10.03.2015 um 06:40 schrieb Michael Tokarev:
> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
> ---
>   disas/cris.c              | 11 -----------
>   target-cris/opcode-cris.h | 10 ----------
>   2 files changed, 21 deletions(-)
>
> diff --git a/disas/cris.c b/disas/cris.c
> index 9dfb4e3..0fc7e54 100644
> --- a/disas/cris.c
> +++ b/disas/cris.c
> @@ -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")
> diff --git a/target-cris/opcode-cris.h b/target-cris/opcode-cris.h
> index 779d4aa..e7ebb98 100644
> --- a/target-cris/opcode-cris.h
> +++ b/target-cris/opcode-cris.h
> @@ -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)

Reviewed-by: Stefan Weil <sw@weilnetz.de>

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).
Michael Tokarev March 10, 2015, 7:18 a.m. UTC | #2
10.03.2015 10:12, Stefan Weil wrote:
[]
> 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
diff mbox

Patch

diff --git a/disas/cris.c b/disas/cris.c
index 9dfb4e3..0fc7e54 100644
--- a/disas/cris.c
+++ b/disas/cris.c
@@ -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")
diff --git a/target-cris/opcode-cris.h b/target-cris/opcode-cris.h
index 779d4aa..e7ebb98 100644
--- a/target-cris/opcode-cris.h
+++ b/target-cris/opcode-cris.h
@@ -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)