diff options
-rw-r--r-- | target-i386/ops_sse.h | 2 | ||||
-rw-r--r-- | target-i386/translate.c | 7 |
2 files changed, 4 insertions, 5 deletions
diff --git a/target-i386/ops_sse.h b/target-i386/ops_sse.h index 1f1db50..7d7834f 100644 --- a/target-i386/ops_sse.h +++ b/target-i386/ops_sse.h @@ -1481,7 +1481,7 @@ void glue(name, SUFFIX) (Reg *d, Reg *s, uint32_t imm)\ /* SSE4.1 op helpers */ #define FBLENDVB(d, s, m) (m & 0x80) ? s : d #define FBLENDVPS(d, s, m) (m & 0x80000000) ? s : d -#define FBLENDVPD(d, s, m) (m & 0x8000000000000000) ? s : d +#define FBLENDVPD(d, s, m) (m & 0x8000000000000000LL) ? s : d SSE_HELPER_V(helper_pblendvb, B, 16, FBLENDVB) SSE_HELPER_V(helper_blendvps, L, 4, FBLENDVPS) SSE_HELPER_V(helper_blendvpd, Q, 2, FBLENDVPD) diff --git a/target-i386/translate.c b/target-i386/translate.c index 681688c..598c6f9 100644 --- a/target-i386/translate.c +++ b/target-i386/translate.c @@ -3568,17 +3568,16 @@ static void gen_sse(DisasContext *s, int b, target_ulong pc_start, int rex_r) reg = ((modrm >> 3) & 7) | rex_r; gen_op_mov_reg_T0(OT_LONG, reg); break; - case 0x038: case 0x138: + if (s->prefix & PREFIX_REPNZ) + goto crc32; + case 0x038: b = modrm; modrm = ldub_code(s->pc++); rm = modrm & 7; reg = ((modrm >> 3) & 7) | rex_r; mod = (modrm >> 6) & 3; - if (s->prefix & PREFIX_REPNZ) - goto crc32; - sse_op2 = sse_op_table6[b].op[b1]; if (!sse_op2) goto illegal_op; |