Patchwork [3/5] tcg-sparc: Do not remove %o[012] from 'r' constraint.

login
register
mail settings
Submitter Richard Henderson
Date Jan. 11, 2010, 7 p.m.
Message ID <731029a3a311da63f269b2faf398a13c862f05e4.1263237726.git.rth@twiddle.net>
Download mbox | patch
Permalink /patch/42655/
State New
Headers show

Comments

Richard Henderson - Jan. 11, 2010, 7 p.m.
Only 'L' constraint needs that.

Signed-off-by: Richard Henderson <rth@twiddle.net>
---
 tcg/sparc/tcg-target.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

Patch

diff --git a/tcg/sparc/tcg-target.c b/tcg/sparc/tcg-target.c
index 6934580..8675fce 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);