freebsd-ports/emulators/kqemu-kmod-devel/files/patch-common-interp.c
Juergen Lock 2acde1c040 (Attempt to) fix build on i386 with gcc46 and -Werror.
Submitted by:	beefy1 via pkg-fallout
2013-09-26 20:09:57 +00:00

15 lines
370 B
C

--- common/interp.c.orig
+++ common/interp.c
@@ -1870,11 +1870,11 @@ static void helper_wrmsr(struct kqemu_st
{
#ifdef __x86_64__
struct kqemu_cpu_state *env = &s->cpu_state;
-#endif
uint64_t val;
val = ((uint32_t)s->regs1.eax) |
((uint64_t)((uint32_t)s->regs1.edx) << 32);
+#endif
switch((uint32_t)s->regs1.ecx) {
#ifdef __x86_64__