aboutsummaryrefslogtreecommitdiff
path: root/sim/common/sim-close.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-11-16 00:12:23 -0800
committerMike Frysinger <vapier@gentoo.org>2015-11-17 00:48:07 -0500
commit146b80ff180c0490fa920c183d665f536f2a4b0b (patch)
tree5a99143ba502c6a20177b0c181b1a3cf913d670e /sim/common/sim-close.c
parent58a345fe1f0407cb2743da0b295ef28cc7f23c72 (diff)
downloadgdb-146b80ff180c0490fa920c183d665f536f2a4b0b.zip
gdb-146b80ff180c0490fa920c183d665f536f2a4b0b.tar.gz
gdb-146b80ff180c0490fa920c183d665f536f2a4b0b.tar.bz2
sim: sim-close: use XCONCAT2 helper
No point in open coding this logic when we've got nifty helpers to do it.
Diffstat (limited to 'sim/common/sim-close.c')
-rw-r--r--sim/common/sim-close.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sim/common/sim-close.c b/sim/common/sim-close.c
index a1458d4..b7b7429 100644
--- a/sim/common/sim-close.c
+++ b/sim/common/sim-close.c
@@ -36,9 +36,7 @@ sim_close (SIM_DESC sd, int quitting)
/* If cgen is active, close it down. */
#ifdef CGEN_ARCH
-# define __cgen_cpu_close(arch) arch##_cgen_cpu_close
-# define _cgen_cpu_close(arch) __cgen_cpu_close (arch)
-# define cgen_cpu_close _cgen_cpu_close (CGEN_ARCH)
+# define cgen_cpu_close XCONCAT2 (CGEN_ARCH,_cgen_cpu_close)
cgen_cpu_close (CPU_CPU_DESC (STATE_CPU (sd, 0)));
#endif