aboutsummaryrefslogtreecommitdiff
path: root/sim/common
diff options
context:
space:
mode:
Diffstat (limited to 'sim/common')
-rw-r--r--sim/common/callback.c2
-rw-r--r--sim/common/cgen-trace.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sim/common/callback.c b/sim/common/callback.c
index 070f451..63e0ab1 100644
--- a/sim/common/callback.c
+++ b/sim/common/callback.c
@@ -812,7 +812,7 @@ cb_read_target_syscall_maps (host_callback *cb, const char *file)
if (cb->signal_map)
free (cb->signal_map);
if (cb->stat_map)
- free ((PTR) cb->stat_map);
+ free ((void *) cb->stat_map);
cb->syscall_map = syscall_map;
cb->errno_map = errno_map;
diff --git a/sim/common/cgen-trace.c b/sim/common/cgen-trace.c
index 12f6126..3df30c5 100644
--- a/sim/common/cgen-trace.c
+++ b/sim/common/cgen-trace.c
@@ -433,7 +433,7 @@ sim_cgen_disassemble_insn (SIM_CPU *cpu, const CGEN_INSN *insn,
disasm_info.buffer = insn_buf.bytes;
disasm_info.buffer_length = length;
- ex_info.dis_info = (PTR) &disasm_info;
+ ex_info.dis_info = &disasm_info;
ex_info.valid = (1 << length) - 1;
ex_info.insn_bytes = insn_buf.bytes;