summaryrefslogtreecommitdiff
path: root/sim/frv
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2022-05-10 22:57:13 +0930
committerAlan Modra <amodra@gmail.com>2022-05-13 14:32:54 +0930
commit845cbaa9ffbfd6a1f7976a6c7f3e4461e4d41993 (patch)
treecd44d6acbd57ee37cd21d7585d052f9737e04371 /sim/frv
parentd112ec9673d92b43dfef868460b7361d5c6bb06c (diff)
downloadbinutils-gdb-845cbaa9ffbfd6a1f7976a6c7f3e4461e4d41993.tar.gz
sim: remove use of PTR
PTR will soon disappear from ansidecl.h. Remove uses in sim. Where a PTR cast is used in assignment or function args to a void* I've simply removed the unnecessary (in C) cast rather than replacing with (void *).
Diffstat (limited to 'sim/frv')
-rw-r--r--sim/frv/traps.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/frv/traps.c b/sim/frv/traps.c
index 11f4a600d15..0c9eacd0bfd 100644
--- a/sim/frv/traps.c
+++ b/sim/frv/traps.c
@@ -138,8 +138,8 @@ frv_itrap (SIM_CPU *current_cpu, PCADDR pc, USI base, SI offset)
sim_engine_halt (sd, current_cpu, NULL, pc, sim_exited, s.arg1);
}
- s.p1 = (PTR) sd;
- s.p2 = (PTR) current_cpu;
+ s.p1 = sd;
+ s.p2 = current_cpu;
s.read_mem = syscall_read_mem;
s.write_mem = syscall_write_mem;
cb_syscall (cb, &s);