Commit 89344d5ad7751010874300ff2b25953edcd6d3cb
1 parent
da9b266b
arm vfp fcmp and fcmpe instructions fix (Paul Brook)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1382 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
2 additions
and
2 deletions
target-arm/op_helper.c
| @@ -67,7 +67,7 @@ void do_vfp_cmp##p(void) \ | @@ -67,7 +67,7 @@ void do_vfp_cmp##p(void) \ | ||
| 67 | { \ | 67 | { \ |
| 68 | uint32_t flags; \ | 68 | uint32_t flags; \ |
| 69 | switch(float ## size ## _compare_quiet(FT0##p, FT1##p, &env->vfp.fp_status)) {\ | 69 | switch(float ## size ## _compare_quiet(FT0##p, FT1##p, &env->vfp.fp_status)) {\ |
| 70 | - case 0: flags = 0xc; break;\ | 70 | + case 0: flags = 0x6; break;\ |
| 71 | case -1: flags = 0x8; break;\ | 71 | case -1: flags = 0x8; break;\ |
| 72 | case 1: flags = 0x2; break;\ | 72 | case 1: flags = 0x2; break;\ |
| 73 | default: case 2: flags = 0x3; break;\ | 73 | default: case 2: flags = 0x3; break;\ |
| @@ -80,7 +80,7 @@ void do_vfp_cmpe##p(void) \ | @@ -80,7 +80,7 @@ void do_vfp_cmpe##p(void) \ | ||
| 80 | { \ | 80 | { \ |
| 81 | uint32_t flags; \ | 81 | uint32_t flags; \ |
| 82 | switch(float ## size ## _compare(FT0##p, FT1##p, &env->vfp.fp_status)) {\ | 82 | switch(float ## size ## _compare(FT0##p, FT1##p, &env->vfp.fp_status)) {\ |
| 83 | - case 0: flags = 0xc; break;\ | 83 | + case 0: flags = 0x6; break;\ |
| 84 | case -1: flags = 0x8; break;\ | 84 | case -1: flags = 0x8; break;\ |
| 85 | case 1: flags = 0x2; break;\ | 85 | case 1: flags = 0x2; break;\ |
| 86 | default: case 2: flags = 0x3; break;\ | 86 | default: case 2: flags = 0x3; break;\ |