projects
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Support Intel SM4
[binutils-gdb.git]
/
opcodes
/
rl78-dis.c
diff --git
a/opcodes/rl78-dis.c
b/opcodes/rl78-dis.c
index 3f8771377ed1de3f6160498ee64e795b0e0aa456..cc4f04c0dcbdb253e8ec538aa17a5a59aa7b6dea 100644
(file)
--- a/
opcodes/rl78-dis.c
+++ b/
opcodes/rl78-dis.c
@@
-1,5
+1,5
@@
/* Disassembler code for Renesas RL78.
/* Disassembler code for Renesas RL78.
- Copyright (C) 2011-202
1
Free Software Foundation, Inc.
+ Copyright (C) 2011-202
3
Free Software Foundation, Inc.
Contributed by Red Hat.
Written by DJ Delorie.
Contributed by Red Hat.
Written by DJ Delorie.
@@
-110,7
+110,7
@@
print_insn_rl78_common (bfd_vma addr, disassemble_info * dis, RL78_Dis_Isa isa)
#endif
struct private priv;
#endif
struct private priv;
- dis->private_data =
(PTR)
&priv;
+ dis->private_data = &priv;
rl78_data.pc = addr;
rl78_data.dis = dis;
rl78_data.pc = addr;
rl78_data.dis = dis;
@@
-408,7
+408,7
@@
rl78_get_disassembler (bfd *abfd)
{
int cpu = E_FLAG_RL78_ANY_CPU;
{
int cpu = E_FLAG_RL78_ANY_CPU;
- if (abfd != NULL)
+ if (abfd != NULL
&& bfd_get_flavour (abfd) == bfd_target_elf_flavour
)
cpu = abfd->tdata.elf_obj_data->elf_header->e_flags & E_FLAG_RL78_CPU_MASK;
switch (cpu)
cpu = abfd->tdata.elf_obj_data->elf_header->e_flags & E_FLAG_RL78_CPU_MASK;
switch (cpu)