sim: callback: inline PTR define

We require C11 now, so no need for these pre-ANSI C hacks.
PTR is simply void*, so use that directly.
This commit is contained in:
Mike Frysinger
2021-04-24 14:02:07 -04:00
parent 7fb6dc36bb
commit 64654371d6
5 changed files with 16 additions and 6 deletions

View File

@ -71,8 +71,8 @@ sim_syscall_multi (SIM_CPU *cpu, int func, long arg1, long arg2, long arg3,
sc.arg3 = arg3;
sc.arg4 = arg4;
sc.p1 = (PTR) sd;
sc.p2 = (PTR) cpu;
sc.p1 = sd;
sc.p2 = cpu;
sc.read_mem = sim_syscall_read_mem;
sc.write_mem = sim_syscall_write_mem;