Commit e3e86d56c46d37418f4e20645d51731666bf903f
1 parent
1df912cf
gcc3 compile fixes
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@282 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
3 additions
and
2 deletions
tests/test-i386.c
1 | #define _GNU_SOURCE | 1 | #define _GNU_SOURCE |
2 | #include <stdlib.h> | 2 | #include <stdlib.h> |
3 | #include <stdio.h> | 3 | #include <stdio.h> |
4 | +#include <string.h> | ||
4 | #include <inttypes.h> | 5 | #include <inttypes.h> |
5 | #include <math.h> | 6 | #include <math.h> |
6 | #include <signal.h> | 7 | #include <signal.h> |
@@ -591,7 +592,7 @@ void test_fbcd(double a) | @@ -591,7 +592,7 @@ void test_fbcd(double a) | ||
591 | asm("fld1\n"\ | 592 | asm("fld1\n"\ |
592 | prefix "fnstenv %1\n"\ | 593 | prefix "fnstenv %1\n"\ |
593 | prefix "fldenv %1\n"\ | 594 | prefix "fldenv %1\n"\ |
594 | - : "=t" (res) : "m" (*(env)) : "st");\ | 595 | + : "=t" (res) : "m" (*(env)));\ |
595 | printf("res=%f\n", res);\ | 596 | printf("res=%f\n", res);\ |
596 | printf("fpuc=%04x fpus=%04x fptag=%04x\n",\ | 597 | printf("fpuc=%04x fpus=%04x fptag=%04x\n",\ |
597 | (env)->fpuc,\ | 598 | (env)->fpuc,\ |
@@ -601,7 +602,7 @@ void test_fbcd(double a) | @@ -601,7 +602,7 @@ void test_fbcd(double a) | ||
601 | asm("fld1\n"\ | 602 | asm("fld1\n"\ |
602 | prefix "fnsave %1\n"\ | 603 | prefix "fnsave %1\n"\ |
603 | prefix "frstor %1\n"\ | 604 | prefix "frstor %1\n"\ |
604 | - : "=t" (res) : "m" (*(env)) : "st");\ | 605 | + : "=t" (res) : "m" (*(env)));\ |
605 | printf("res=%f\n", res);\ | 606 | printf("res=%f\n", res);\ |
606 | printf("fpuc=%04x fpus=%04x fptag=%04x\n",\ | 607 | printf("fpuc=%04x fpus=%04x fptag=%04x\n",\ |
607 | (env)->fpuc,\ | 608 | (env)->fpuc,\ |