aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2003-06-25 16:21:11 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2003-06-25 16:21:11 +0000
commite3e86d56c46d37418f4e20645d51731666bf903f (patch)
tree12e6b1305b4fdcb98d06bb2d92458ec062cb0ff4 /tests
parent1df912cf9e3dc0c3352fca1200c4bdc3477bf9f4 (diff)
downloadqemu-e3e86d56c46d37418f4e20645d51731666bf903f.zip
qemu-e3e86d56c46d37418f4e20645d51731666bf903f.tar.gz
qemu-e3e86d56c46d37418f4e20645d51731666bf903f.tar.bz2
gcc3 compile fixes
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@282 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'tests')
-rw-r--r--tests/test-i386.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test-i386.c b/tests/test-i386.c
index d5fe1c4..cb35f21 100644
--- a/tests/test-i386.c
+++ b/tests/test-i386.c
@@ -1,6 +1,7 @@
#define _GNU_SOURCE
#include <stdlib.h>
#include <stdio.h>
+#include <string.h>
#include <inttypes.h>
#include <math.h>
#include <signal.h>
@@ -591,7 +592,7 @@ void test_fbcd(double a)
asm("fld1\n"\
prefix "fnstenv %1\n"\
prefix "fldenv %1\n"\
- : "=t" (res) : "m" (*(env)) : "st");\
+ : "=t" (res) : "m" (*(env)));\
printf("res=%f\n", res);\
printf("fpuc=%04x fpus=%04x fptag=%04x\n",\
(env)->fpuc,\
@@ -601,7 +602,7 @@ void test_fbcd(double a)
asm("fld1\n"\
prefix "fnsave %1\n"\
prefix "frstor %1\n"\
- : "=t" (res) : "m" (*(env)) : "st");\
+ : "=t" (res) : "m" (*(env)));\
printf("res=%f\n", res);\
printf("fpuc=%04x fpus=%04x fptag=%04x\n",\
(env)->fpuc,\