summaryrefslogtreecommitdiff
path: root/tests/tcg
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2012-10-12 16:40:21 +0200
committerRichard Henderson <rth@twiddle.net>2013-02-18 15:03:55 -0800
commit1b99f83e3946c447eefb3417ec1ea4c2f3b44582 (patch)
tree7a4993f4e976ebe5028b268a3a891468ba2fa0bd /tests/tcg
parent40475087a5ee80f5251dac6087142458d8dc7d99 (diff)
downloadqemu-1b99f83e3946c447eefb3417ec1ea4c2f3b44582.tar.gz
test-i386: make it compile with a recent gcc
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'tests/tcg')
-rw-r--r--tests/tcg/test-i386.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/tcg/test-i386.c b/tests/tcg/test-i386.c
index b18fe20c76..b05572b734 100644
--- a/tests/tcg/test-i386.c
+++ b/tests/tcg/test-i386.c
@@ -209,7 +209,7 @@ static inline long i2l(long v)
#define TEST_LEA16(STR)\
{\
asm(".code16 ; .byte 0x67 ; leal " STR ", %0 ; .code32"\
- : "=wq" (res)\
+ : "=r" (res)\
: "a" (eax), "b" (ebx), "c" (ecx), "d" (edx), "S" (esi), "D" (edi));\
printf("lea %s = %08lx\n", STR, res);\
}
@@ -1828,7 +1828,7 @@ void test_exceptions(void)
printf("lock nop exception:\n");
if (setjmp(jmp_env) == 0) {
/* now execute an invalid instruction */
- asm volatile(".byte 0xf0, 0x90"); /* lock nop */
+ asm volatile(".byte 0xf0, 0x90");
}
printf("INT exception:\n");