projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix indentation in print_thread_info_1
[deliverable/binutils-gdb.git]
/
opcodes
/
sh-opc.h
diff --git
a/opcodes/sh-opc.h
b/opcodes/sh-opc.h
index 5916c6a99bfd7dd38885d830563c11b7d3f0d292..13d6217ab81143ee82e573f3fa6e2dd770496ea6 100644
(file)
--- a/
opcodes/sh-opc.h
+++ b/
opcodes/sh-opc.h
@@
-1,5
+1,5
@@
/* Definitions for SH opcodes.
/* Definitions for SH opcodes.
- Copyright (C) 1993-201
6
Free Software Foundation, Inc.
+ Copyright (C) 1993-201
9
Free Software Foundation, Inc.
This file is part of the GNU opcodes library.
This file is part of the GNU opcodes library.
@@
-20,6
+20,10
@@
#include "bfd.h"
#include "bfd.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef enum
{
HEX_0,
typedef enum
{
HEX_0,
@@
-201,10
+205,7
@@
typedef enum
sh_dsp_reg_nums;
/* Return a mask with bits LO to HI (inclusive) set. */
sh_dsp_reg_nums;
/* Return a mask with bits LO to HI (inclusive) set. */
-#define MASK(LO,HI) ( LO < 1 ? ((1U << (HI + 1)) - 1) \
- : HI > 30 ? (-1U << LO) \
- : LO == HI ? (1U << LO) \
- : (((1U << (HI + 1)) - 1) & (-1U << LO)))
+#define MASK(LO,HI) ((1U << (HI) << 1) - (1U << (LO)))
#define arch_sh1_base (1 << 0)
#define arch_sh2_base (1 << 1)
#define arch_sh1_base (1 << 0)
#define arch_sh2_base (1 << 1)
@@
-230,7
+231,7
@@
sh_dsp_reg_nums;
#define arch_sh_no_co (1 << 28) /* Neither FPU nor DSP co-processor. */
#define arch_sh_sp_fpu (1 << 29) /* Single precision FPU. */
#define arch_sh_dp_fpu (1 << 30) /* Double precision FPU. */
#define arch_sh_no_co (1 << 28) /* Neither FPU nor DSP co-processor. */
#define arch_sh_sp_fpu (1 << 29) /* Single precision FPU. */
#define arch_sh_dp_fpu (1 << 30) /* Double precision FPU. */
-#define arch_sh_has_dsp (1 << 31)
+#define arch_sh_has_dsp (1
u
<< 31)
#define arch_sh_co_mask MASK (28, 31)
#define arch_sh_co_mask MASK (28, 31)
@@
-281,7
+282,6
@@
sh_dsp_reg_nums;
unsigned int sh_get_arch_from_bfd_mach (unsigned long mach);
unsigned int sh_get_arch_up_from_bfd_mach (unsigned long mach);
unsigned long sh_get_bfd_mach_from_arch_set (unsigned int arch_set);
unsigned int sh_get_arch_from_bfd_mach (unsigned long mach);
unsigned int sh_get_arch_up_from_bfd_mach (unsigned long mach);
unsigned long sh_get_bfd_mach_from_arch_set (unsigned int arch_set);
-bfd_boolean sh_merge_bfd_arch (bfd *ibfd, bfd *obfd);
/* Below are the 'architecture sets'.
They describe the following inheritance graph:
/* Below are the 'architecture sets'.
They describe the following inheritance graph:
@@
-371,7
+371,7
@@
SH4AL-dsp SH4A
typedef struct
{
typedef struct
{
- char *name;
+ c
onst c
har *name;
sh_arg_type arg[4];
sh_nibble_type nibbles[9];
unsigned int arch;
sh_arg_type arg[4];
sh_nibble_type nibbles[9];
unsigned int arch;
@@
-1197,4
+1197,8
@@
const sh_opcode_info sh_table[] =
{ 0, {0}, {0}, 0 }
};
{ 0, {0}, {0}, 0 }
};
+#ifdef __cplusplus
+}
+#endif
+
#endif
#endif
This page took
0.024224 seconds
and
4
git commands to generate.