commit d9f8fc775aa2a17bcf8b666b54b0e364d9333871
parent e0877492bece4b0bd7e543ea205ebbf9e9b2732f
Author: Jesus Galan Lopez (yiyus) <yiyu.jgl@gmail.com>
Date: Tue, 8 Jun 2010 00:12:36 +0200
pending changes to libvx32 and 9vx compiles in FreeBSD(amd64)!
Diffstat:
2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/src/libvx32/Makefrag b/src/libvx32/Makefrag
@@ -1,8 +1,12 @@
ifeq ($(ARCH),x86_64)
VX32_RUN = run64.o
else
+ifeq ($(ARCH),amd64)
+VX32_RUN = run64.o
+else
VX32_RUN = run32.o
endif
+endif
ifeq ($(OS),darwin)
VX32_RUN := $(VX32_RUN) darwin-asm.o
diff --git a/src/libvx32/run64.S b/src/libvx32/run64.S
@@ -79,7 +79,11 @@ vxrun:
movl VXEMU_EDI(%r8),%edi
// Run translated code
+#ifndef __FreeBSD__
ljmpl *VXEMU_RUNPTR(%r8) // 'ljmpq' doesn't work - gas bug??
+#else
+ ljmpq *VXEMU_RUNPTR(%r8)
+#endif
// Return from running translated code to the normal host environment.