Commit 33759846482cc4a3a0398972bf942fecd0fd78db

Authored by bellard
1 parent b255bfa8

REXB optimization cannot be done at this level

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4420 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 1 deletions
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) @@ -235,7 +235,7 @@ static inline void tcg_out_opc(TCGContext *s, int opc, int r, int rm, int x)
235 int rex; 235 int rex;
236 rex = ((opc >> 6) & 0x8) | ((r >> 1) & 0x4) | 236 rex = ((opc >> 6) & 0x8) | ((r >> 1) & 0x4) |
237 ((x >> 2) & 2) | ((rm >> 3) & 1); 237 ((x >> 2) & 2) | ((rm >> 3) & 1);
238 - if (rex || ((opc & P_REXB) && r >= 4)) { 238 + if (rex || (opc & P_REXB)) {
239 tcg_out8(s, rex | 0x40); 239 tcg_out8(s, rex | 0x40);
240 } 240 }
241 if (opc & P_EXT) 241 if (opc & P_EXT)