sim: sim-close: use XCONCAT2 helper
No point in open coding this logic when we've got nifty helpers to do it.
This commit is contained in:
parent
58a345fe1f
commit
146b80ff18
|
@ -1,3 +1,8 @@
|
||||||
|
2015-11-16 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
|
* sim-close.c (__cgen_cpu_close, _cgen_cpu_close): Delete.
|
||||||
|
(cgen_cpu_close): Change to XCONCAT2.
|
||||||
|
|
||||||
2015-11-15 Mike Frysinger <vapier@gentoo.org>
|
2015-11-15 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
* Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-reason.o, sim-reg.o,
|
* Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-reason.o, sim-reg.o,
|
||||||
|
|
|
@ -36,9 +36,7 @@ sim_close (SIM_DESC sd, int quitting)
|
||||||
|
|
||||||
/* If cgen is active, close it down. */
|
/* If cgen is active, close it down. */
|
||||||
#ifdef CGEN_ARCH
|
#ifdef CGEN_ARCH
|
||||||
# define __cgen_cpu_close(arch) arch##_cgen_cpu_close
|
# define cgen_cpu_close XCONCAT2 (CGEN_ARCH,_cgen_cpu_close)
|
||||||
# define _cgen_cpu_close(arch) __cgen_cpu_close (arch)
|
|
||||||
# define cgen_cpu_close _cgen_cpu_close (CGEN_ARCH)
|
|
||||||
cgen_cpu_close (CPU_CPU_DESC (STATE_CPU (sd, 0)));
|
cgen_cpu_close (CPU_CPU_DESC (STATE_CPU (sd, 0)));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue