mirror of
https://github.com/qemu/qemu.git
synced 2024-12-03 08:43:38 +08:00
target/mips: Introduce generic TRANS() macro for decodetree helpers
Plain copy/paste of the TRANS() macro introduced in the PPC
commit f2aabda8ac
("target/ppc: Move D/DS/X-form integer
loads to decodetree") to the MIPS target.
Suggested-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210808173018.90960-2-f4bug@amsat.org>
This commit is contained in:
parent
34fe9fa368
commit
fb3164e412
@ -202,4 +202,12 @@ bool decode_ext_txx9(DisasContext *ctx, uint32_t insn);
|
||||
bool decode_ext_tx79(DisasContext *ctx, uint32_t insn);
|
||||
#endif
|
||||
|
||||
/*
|
||||
* 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__); }
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user