From: Richard Henderson Date: Tue, 12 Jan 2010 19:59:32 +0000 (+0000) Subject: tcg-sparc: Do not remove %o[012] from 'r' constraint. X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=5e143c43a686d5563b3a8c9d46b338967cc8d09c;p=qemu.git tcg-sparc: Do not remove %o[012] from 'r' constraint. Only 'L' constraint needs that. Signed-off-by: Richard Henderson Signed-off-by: Blue Swirl --- diff --git a/tcg/sparc/tcg-target.c b/tcg/sparc/tcg-target.c index 6934580697..8675fcee11 100644 --- a/tcg/sparc/tcg-target.c +++ b/tcg/sparc/tcg-target.c @@ -143,6 +143,9 @@ static int target_parse_constraint(TCGArgConstraint *ct, const char **pct_str) ct_str = *pct_str; switch (ct_str[0]) { case 'r': + ct->ct |= TCG_CT_REG; + tcg_regset_set32(ct->u.regs, 0, 0xffffffff); + break; case 'L': /* qemu_ld/st constraint */ ct->ct |= TCG_CT_REG; tcg_regset_set32(ct->u.regs, 0, 0xffffffff);