mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-25 11:19:01 +00:00
tcg: Remove tcg_regset_{or,and,andnot,not}
Backports commit 07ddf036fa66bca279590c09fe1c46bcdcc5bcff from qemu
This commit is contained in:
parent
7ba6f6f5e6
commit
9a9c2ede4a
2 changed files with 1 additions and 5 deletions
|
@ -2296,7 +2296,7 @@ static TCGReg tcg_reg_alloc(TCGContext *s, TCGRegSet desired_regs,
|
|||
TCGReg reg;
|
||||
TCGRegSet reg_ct;
|
||||
|
||||
tcg_regset_andnot(reg_ct, desired_regs, allocated_regs);
|
||||
reg_ct = desired_regs & ~allocated_regs;
|
||||
order = rev ? s->indirect_reg_alloc_order : tcg_target_reg_alloc_order;
|
||||
|
||||
/* first try free registers */
|
||||
|
|
|
@ -193,10 +193,6 @@ typedef enum TCGOpcode {
|
|||
#define tcg_regset_set_reg(d, r) (d) |= 1L << (r)
|
||||
#define tcg_regset_reset_reg(d, r) (d) &= ~(1L << (r))
|
||||
#define tcg_regset_test_reg(d, r) (((d) >> (r)) & 1)
|
||||
#define tcg_regset_or(d, a, b) (d) = (a) | (b)
|
||||
#define tcg_regset_and(d, a, b) (d) = (a) & (b)
|
||||
#define tcg_regset_andnot(d, a, b) (d) = (a) & ~(b)
|
||||
#define tcg_regset_not(d, a) (d) = ~(a)
|
||||
|
||||
#ifndef TCG_TARGET_INSN_UNIT_SIZE
|
||||
# error "Missing TCG_TARGET_INSN_UNIT_SIZE"
|
||||
|
|
Loading…
Reference in a new issue