From: bellard Date: Sat, 10 May 2008 21:58:28 +0000 (+0000) Subject: REXB optimization cannot be done at this level X-Git-Tag: xen-3.3.0-rc1~194^2^2~32 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=33759846482cc4a3a0398972bf942fecd0fd78db;p=qemu-xen-4.5-testing.git REXB optimization cannot be done at this level git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4420 c046a42c-6fe2-441c-8c8c-71466251a162 --- diff --git a/tcg/x86_64/tcg-target.c b/tcg/x86_64/tcg-target.c index 94a767a3c..f11bc669f 100644 --- a/tcg/x86_64/tcg-target.c +++ b/tcg/x86_64/tcg-target.c @@ -235,7 +235,7 @@ static inline void tcg_out_opc(TCGContext *s, int opc, int r, int rm, int x) int rex; rex = ((opc >> 6) & 0x8) | ((r >> 1) & 0x4) | ((x >> 2) & 2) | ((rm >> 3) & 1); - if (rex || ((opc & P_REXB) && r >= 4)) { + if (rex || (opc & P_REXB)) { tcg_out8(s, rex | 0x40); } if (opc & P_EXT)