Commit a74b4d2c23a5da45a5ef9eec18ce00923b6bab15

Authored by aurel32
1 parent d9e147ad

target-alpha: fix decoding of CVTST /S

This patch fixes the decoding of CVTST /S which was
incorrectly being decoded as CVTTS.

This fixes SPEC2000 gcc with 200.i input.

Signed-off-by: Laurent Desnogues <laurent.desnogues@gmail.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5693 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 1 deletions
target-alpha/translate.c
... ... @@ -1464,7 +1464,7 @@ static always_inline int translate_one (DisasContext *ctx, uint32_t insn)
1464 1464 break;
1465 1465 case 0x2C:
1466 1466 /* XXX: incorrect */
1467   - if (fn11 == 0x2AC) {
  1467 + if (fn11 == 0x2AC || fn11 == 0x6AC) {
1468 1468 /* CVTST */
1469 1469 gen_farith2(&helper_cvtst, rb, rc);
1470 1470 } else {
... ...