make all_dibs
if [ $? -eq 0 ]
then
- echo "x86 build success"
+ echo "build success"
else
- echo "x86 build failure"
+ echo "build failure"
exit 1
fi
- make install_dibs
-# make clean
-# ./emulator_configure.sh arm
-# make all_dibs
-# if [ $? -eq 0 ]
-# then
-# echo "arm build success"
-# else
-# echo "arm build failure"
-# exit 1
-# fi
+# make install_dibs
+# make clean
+#
+# ./emulator_configure.sh arm
+# make all_dibs
+# if [ $? -eq 0 ]
+# then
+# echo "arm build success"
+# else
+# echo "arm build failure"
+# exit 1
+# fi
# make install_dibs
}
install()
{
X86_BIN_DIR=$SRCDIR/package/emulator-qemu-x86.package.${TARGET_OS}/data/tools
- ARM_BIN_DIR=$SRCDIR/package/emulator-qemu-arm.package.${TARGET_OS}/data/tools
+# ARM_BIN_DIR=$SRCDIR/package/emulator-qemu-arm.package.${TARGET_OS}/data/tools
COMMON_BIN_DIR=$SRCDIR/package/emulator-qemu-common.package.${TARGET_OS}/data/tools
mkdir -p $X86_BIN_DIR
- mkdir -p $ARM_BIN_DIR
+# mkdir -p $ARM_BIN_DIR
mkdir -p $COMMON_BIN_DIR
cd $SRCDIR/tizen
+ make install_dibs
mv x86 $X86_BIN_DIR/emulator
- mv arm $ARM_BIN_DIR/emulator
+# mv x86 $ARM_BIN_DIR/emulator
mv common $COMMON_BIN_DIR/emulator
}
echo "x86 build failure"
exit 1
fi
- make install_dibs
-# make clean
-# ./emulator_configure.sh arm
-# make all_dibs
-# if [ $? -eq 0 ]
-# then
-# echo "arm build success"
-# else
-# echo "arm build failure"
-# exit 1
-# fi
+# make install_dibs
+# make clean
+#
+# ./emulator_configure.sh arm
+# make all_dibs
+# if [ $? -eq 0 ]
+# then
+# echo "arm build success"
+# else
+# echo "arm build failure"
+# exit 1
+# fi
# make install_dibs
}
install()
{
X86_BIN_DIR=$SRCDIR/package/emulator-qemu-x86.package.${TARGET_OS}/data/tools
- ARM_BIN_DIR=$SRCDIR/package/emulator-qemu-arm.package.${TARGET_OS}/data/tools
+# ARM_BIN_DIR=$SRCDIR/package/emulator-qemu-arm.package.${TARGET_OS}/data/tools
COMMON_BIN_DIR=$SRCDIR/package/emulator-qemu-common.package.${TARGET_OS}/data/tools
mkdir -p $X86_BIN_DIR
- mkdir -p $ARM_BIN_DIR
+# mkdir -p $ARM_BIN_DIR
mkdir -p $COMMON_BIN_DIR
cd $SRCDIR/tizen
+ make install_dibs
mv x86 $X86_BIN_DIR/emulator
- mv arm $ARM_BIN_DIR/emulator
+# mv x86 $ARM_BIN_DIR/emulator
mv common $COMMON_BIN_DIR/emulator
}
echo "x86 build failure"
exit 1
fi
- make install_dibs
-# make clean
-# ./emulator_configure.sh arm
-# make all_dibs
-# if [ $? -eq 0 ]
-# then
-# echo "arm build success"
-# else
-# echo "arm build failure"
-# exit 1
-# fi
+# make install_dibs
+# make clean
+#
+# ./emulator_configure.sh arm
+# make all_dibs
+# if [ $? -eq 0 ]
+# then
+# echo "arm build success"
+# else
+# echo "arm build failure"
+# exit 1
+# fi
# make install_dibs
}
install()
{
X86_BIN_DIR=$SRCDIR/package/emulator-qemu-x86.package.${TARGET_OS}/data/tools
- ARM_BIN_DIR=$SRCDIR/package/emulator-qemu-arm.package.${TARGET_OS}/data/tools
+# ARM_BIN_DIR=$SRCDIR/package/emulator-qemu-arm.package.${TARGET_OS}/data/tools
COMMON_BIN_DIR=$SRCDIR/package/emulator-qemu-common.package.${TARGET_OS}/data/tools
mkdir -p $X86_BIN_DIR
- mkdir -p $ARM_BIN_DIR
+# mkdir -p $ARM_BIN_DIR
mkdir -p $COMMON_BIN_DIR
cd $SRCDIR/tizen
+ make install_dibs
mv x86 $X86_BIN_DIR/emulator
- mv arm $ARM_BIN_DIR/emulator
+# mv x86 $ARM_BIN_DIR/emulator
mv common $COMMON_BIN_DIR/emulator
}
echo "x86 build failure"
exit 1
fi
- make install_dibs
-# make clean
-# ./emulator_configure.sh arm -e "$BUILD_CFLAGS $BUILD_LDFLAGS"
-# make all_dibs
-# if [ $? -eq 0 ]
-# then
-# echo "arm build success"
-# else
-# echo "arm build failure"
-# exit 1
-# fi
-# make install_dibs
+# make install_dibs
+# make clean
+#
+# ./emulator_configure.sh arm -e "$BUILD_CFLAGS $BUILD_LDFLAGS"
+# make all_dibs
+# if [ $? -eq 0 ]
+# then
+# echo "arm build success"
+# else
+# echo "arm build failure"
+# exit 1
+# fi
+# make install_dibs
}
# install
prepare
X86_BIN_DIR=$SRCDIR/package/emulator-qemu-x86.package.${TARGET_OS}/data/tools
- ARM_BIN_DIR=$SRCDIR/package/emulator-qemu-arm.package.${TARGET_OS}/data/tools
+# ARM_BIN_DIR=$SRCDIR/package/emulator-qemu-arm.package.${TARGET_OS}/data/tools
COMMON_BIN_DIR=$SRCDIR/package/emulator-qemu-common.package.${TARGET_OS}/data/tools
mkdir -p $X86_BIN_DIR
- mkdir -p $ARM_BIN_DIR
+# mkdir -p $ARM_BIN_DIR
mkdir -p $COMMON_BIN_DIR
cd $SRCDIR/tizen
+ make install_dibs
mv x86 $X86_BIN_DIR/emulator
- mv arm $ARM_BIN_DIR/emulator
+# mv x86 $ARM_BIN_DIR/emulator
mv common $COMMON_BIN_DIR/emulator
}
case "$1" in
x86|i386|i486|i586|i686)
EMUL_TARGET_LIST="i386-softmmu"
- if [ -z "$VIRTIOGL_EN" ] && [ -z "$YAGL_EN" ] ; then
+ if [ -z "$VIRTIOGL_EN" ] ; then
virtgl_enable yes
fi
;;
arm)
EMUL_TARGET_LIST="arm-softmmu"
- if [ -z "$YAGL_EN" ] && [ -z "$VIRTIOGL_EN" ] && [ "$targetos" != "Darwin" ] ; then
+ if [ -z "$YAGL_EN" ] && [ "$targetos" != "Darwin" ] ; then
yagl_enable yes
fi
;;
cp skin/client/emulator-skin.jar $(DIBS_COMMON_DIR)/bin
ifdef CONFIG_WIN32
- cp ../../i386-softmmu/check-gl.exe $(DIBS_COMMONL_DIR)/bin
+ cp ../../i386-softmmu/check-gl.exe $(DIBS_COMMON_DIR)/bin
cp check-hax.exe $(DIBS_COMMON_DIR)/bin
endif
static inline int interlocked_xchg_add( int *dest, int incr )
{
- int ret;
+ int ret_val;
__asm__ __volatile__( "lock; xaddl %0,(%1)"
- : "=r" (ret) : "r" (dest), "0" (incr) : "memory" );
- return ret;
+ : "=r" (ret_val) : "r" (dest), "0" (incr) : "memory" );
+ return ret_val;
}
static const char * const debug_classes[] = {"fixme", "err", "warn", "trace", "info"};
}
}
-#if 0
-cleanup:
-#endif
#ifdef _WIN32
if (server_sock) {
closesocket(server_sock);
char *argptr, *tmp;
static void* args[50];
int func_number;
+#ifdef __APPLE__
char temp4mac[256];
+#endif
if(!args_len)
return 0;
unsigned int client_texture = args[1];
unsigned int server_texture;
+ if(((int)client_texture) < 0)
+ {
+ fprintf(stderr, "glBindTexture got invalid texture ID, do nothing!\n");
+ break;
+ }
+
if (client_texture == 0) {
glBindTexture(target, 0);
} else {
if(!elem.out_num) {
fprintf(stderr, "Bad packet\n");
- goto done;
+ virtqueue_push(vq, &elem, ret);
+ virtio_notify(vdev, vq);
+ return;
}
process = vmgl_get_process(hdr->pid);
gl_disconnect(process);
}
}
-done:
+
virtqueue_push(vq, &elem, ret);
virtio_notify(vdev, vq);