tcg-sparc: Do not remove %o[012] from 'r' constraint.
authorRichard Henderson <rth@twiddle.net>
Tue, 12 Jan 2010 19:59:32 +0000 (19:59 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Tue, 12 Jan 2010 19:59:32 +0000 (19:59 +0000)
Only 'L' constraint needs that.

Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
tcg/sparc/tcg-target.c

index 6934580697a8d9b81f2b15977b7afb5e584b6c7d..8675fcee11f557d26994d908fb1b01abbef1ac81 100644 (file)
@@ -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);