diff options
author | malc <av1474@comtv.ru> | 2012-10-14 14:54:38 +0400 |
---|---|---|
committer | malc <av1474@comtv.ru> | 2012-10-14 14:55:09 +0400 |
commit | 8b4a3df8081f3e6f1061ed5cbb303ad623ade66b (patch) | |
tree | ac8d17aa27d1c3f0f058bca523fa4ce6c134ef3f /target-i386 | |
parent | b64ba4b232e776d891a7a5137a6129221b6a9cd0 (diff) |
Fix popcnt in long mode
Thanks to Andriy Gapon for initial problem report.
Signed-off-by: malc <av1474@comtv.ru>
Diffstat (limited to 'target-i386')
-rw-r--r-- | target-i386/translate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-i386/translate.c b/target-i386/translate.c index 0a7e4e3487..ee7585044b 100644 --- a/target-i386/translate.c +++ b/target-i386/translate.c @@ -7768,7 +7768,7 @@ static target_ulong disas_insn(DisasContext *s, target_ulong pc_start) goto illegal_op; modrm = cpu_ldub_code(cpu_single_env, s->pc++); - reg = ((modrm >> 3) & 7); + reg = ((modrm >> 3) & 7) | rex_r; if (s->prefix & PREFIX_DATA) ot = OT_WORD; |