|
From: | Richard Henderson |
Subject: | Re: [PATCH-for-6.2 v2 3/5] target/mips: Convert Vr54xx MACC* opcodes to decodetree |
Date: | Fri, 6 Aug 2021 11:42:35 -1000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 |
On 8/6/21 11:05 AM, Philippe Mathieu-Daudé wrote:
+/* + * Helpers for implementing sets of trans_* functions. + * Defer the implementation of NAME to FUNC, with optional extra arguments. + */ +#define TRANS(NAME, FUNC, ...) \ + static bool trans_##NAME(DisasContext *ctx, arg_##NAME *a) \ + { return FUNC(ctx, a, __VA_ARGS__); } +
I was thinking this could go in translate.h, for use with the other files at some point. r~
[Prev in Thread] | Current Thread | [Next in Thread] |