opcodes: remove use of PTR

The non-cgen parts of opcodes.

	* cr16-dis.c (print_arg): Replace PTR with void *.
	* crx-dis.c (print_arg): Likewise.
	* rl78-dis.c (print_insn_rl78_common): Don't use PTR cast.
	* rx-dis.c (print_insn_rx): Likewise.
	* visium-dis.c (print_insn_visium): Likewise.
	* z8k-dis.c (print_insn_z8k): Likewise.
This commit is contained in:
Alan Modra 2022-05-10 09:17:30 +09:30
parent f3b9cfd195
commit d64336e655
6 changed files with 6 additions and 6 deletions

View File

@ -529,7 +529,7 @@ print_arg (argument *a, bfd_vma memaddr, struct disassemble_info *info)
int sign_flag = 0;
int relative = 0;
bfd_vma number;
PTR stream = info->stream;
void *stream = info->stream;
fprintf_ftype func = info->fprintf_func;
switch (a->type)

View File

@ -487,7 +487,7 @@ print_arg (argument *a, bfd_vma memaddr, struct disassemble_info *info)
bfd_vma number;
int op_index = 0;
char string[200];
PTR stream = info->stream;
void *stream = info->stream;
fprintf_ftype func = info->fprintf_func;
switch (a->type)

View File

@ -110,7 +110,7 @@ print_insn_rl78_common (bfd_vma addr, disassemble_info * dis, RL78_Dis_Isa isa)
#endif
struct private priv;
dis->private_data = (PTR) &priv;
dis->private_data = &priv;
rl78_data.pc = addr;
rl78_data.dis = dis;

View File

@ -221,7 +221,7 @@ print_insn_rx (bfd_vma addr, disassemble_info * dis)
const char * s;
struct private priv;
dis->private_data = (PTR) &priv;
dis->private_data = &priv;
rx_data.pc = addr;
rx_data.dis = dis;

View File

@ -766,7 +766,7 @@ print_insn_visium (bfd_vma addr, disassemble_info *info)
/* Stuff copied from m68k-dis.c. */
struct private priv;
bfd_byte *buffer = priv.the_buffer;
info->private_data = (PTR) & priv;
info->private_data = &priv;
priv.max_fetched = priv.the_buffer;
priv.insn_start = addr;
if (setjmp (priv.bailout) != 0)

View File

@ -147,7 +147,7 @@ print_insn_z8k (bfd_vma addr, disassemble_info *info, int is_segmented)
{
instr_data_s instr_data;
info->private_data = (PTR) &instr_data;
info->private_data = &instr_data;
instr_data.max_fetched = 0;
instr_data.insn_start = addr;
if (OPCODES_SIGSETJMP (instr_data.bailout) != 0)