mirror of
https://github.com/qemu/qemu.git
synced 2024-12-15 15:33:29 +08:00
target-m68k: REG() macro cleanup
Signed-off-by: Laurent Vivier <laurent@vivier.eu> Reviewed-by: Richard Henderson <rth@twiddle.net>
This commit is contained in:
parent
2b04e85a34
commit
bcc098b0c2
@ -59,9 +59,10 @@ static TCGv cpu_aregs[8];
|
||||
static TCGv_i64 cpu_fregs[8];
|
||||
static TCGv_i64 cpu_macc[4];
|
||||
|
||||
#define DREG(insn, pos) cpu_dregs[((insn) >> (pos)) & 7]
|
||||
#define AREG(insn, pos) cpu_aregs[((insn) >> (pos)) & 7]
|
||||
#define FREG(insn, pos) cpu_fregs[((insn) >> (pos)) & 7]
|
||||
#define REG(insn, pos) (((insn) >> (pos)) & 7)
|
||||
#define DREG(insn, pos) cpu_dregs[REG(insn, pos)]
|
||||
#define AREG(insn, pos) cpu_aregs[REG(insn, pos)]
|
||||
#define FREG(insn, pos) cpu_fregs[REG(insn, pos)]
|
||||
#define MACREG(acc) cpu_macc[acc]
|
||||
#define QREG_SP cpu_aregs[7]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user