summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2025-09-05 11:30:19 +0200
committerRichard Henderson <richard.henderson@linaro.org>2025-09-23 16:50:03 -0700
commitb7cd0a1821adf9906c5edb248394bb2a95482656 (patch)
tree41380c0098587d032ca8f5a8f6144dd929809da9
parentc8e5aed246914ff6438839350e414a3bea5a8041 (diff)
downloadfocaccia-qemu-b7cd0a1821adf9906c5edb248394bb2a95482656.tar.gz
focaccia-qemu-b7cd0a1821adf9906c5edb248394bb2a95482656.zip
target/sparc: Allow TRANS macro with no extra arguments
Use ## to drop the preceding comma if __VA_ARGS__ is empty.

Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to '')
-rw-r--r--target/sparc/translate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/sparc/translate.c b/target/sparc/translate.c
index b922e53bf1..336583beab 100644
--- a/target/sparc/translate.c
+++ b/target/sparc/translate.c
@@ -2487,7 +2487,7 @@ static int extract_qfpreg(DisasContext *dc, int x)
 
 #define TRANS(NAME, AVAIL, FUNC, ...) \
     static bool trans_##NAME(DisasContext *dc, arg_##NAME *a) \
-    { return avail_##AVAIL(dc) && FUNC(dc, __VA_ARGS__); }
+    { return avail_##AVAIL(dc) && FUNC(dc, ## __VA_ARGS__); }
 
 #define avail_ALL(C)      true
 #ifdef TARGET_SPARC64