aboutsummaryrefslogtreecommitdiff
path: root/opcodes/csky-dis.c
diff options
context:
space:
mode:
Diffstat (limited to 'opcodes/csky-dis.c')
-rw-r--r--opcodes/csky-dis.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/opcodes/csky-dis.c b/opcodes/csky-dis.c
index 45af88c..cdd911b 100644
--- a/opcodes/csky-dis.c
+++ b/opcodes/csky-dis.c
@@ -100,9 +100,9 @@ get_sym_code_type (struct disassemble_info *info,
&& (name[2] == 0 || name[2] == '.'))
{
*sym_type = ((name[1] == 't') ? CUR_TEXT : CUR_DATA);
- return TRUE;
+ return true;
}
- return FALSE;
+ return false;
}
static int
@@ -200,7 +200,7 @@ csky_find_inst_info (struct csky_opcode_info const **pinfo,
return NULL;
}
-static bfd_boolean
+static bool
is_extern_symbol (struct disassemble_info *info, int addr)
{
unsigned int rel_count = 0;
@@ -212,24 +212,24 @@ is_extern_symbol (struct disassemble_info *info, int addr)
struct reloc_cache_entry *pt = info->section->relocation;
for (; rel_count < info->section->reloc_count; rel_count++, pt++)
if ((long unsigned int)addr == pt->address)
- return TRUE;
- return FALSE;
+ return true;
+ return false;
}
- return FALSE;
+ return false;
}
/* Suppress printing of mapping symbols emitted by the assembler to mark
the beginning of code and data sequences. */
-bfd_boolean
+bool
csky_symbol_is_valid (asymbol *sym,
struct disassemble_info *info ATTRIBUTE_UNUSED)
{
const char *name;
if (sym == NULL)
- return FALSE;
+ return false;
name = bfd_asymbol_name (sym);
return name && *name != '$';
}
@@ -776,7 +776,7 @@ csky_output_operand (char *str, struct operand const *oprnd,
case OPRND_TYPE_PSR_BITS_LIST:
{
struct psrbit const *bits;
- int first_oprnd = TRUE;
+ int first_oprnd = true;
int i = 0;
if (IS_CSKY_V1 (mach_flag))
{
@@ -797,7 +797,7 @@ csky_output_operand (char *str, struct operand const *oprnd,
strcat (str, ", ");
strcat (str, bits[i].name);
value &= ~bits[i].value;
- first_oprnd = FALSE;
+ first_oprnd = false;
}
i++;
}
@@ -1049,7 +1049,7 @@ print_insn_csky (bfd_vma memaddr, struct disassemble_info *info)
int status;
char str[256];
unsigned long given;
- int is_data = FALSE;
+ int is_data = false;
void (*printer) (bfd_vma, struct disassemble_info *, long);
unsigned int size = 4;