/* hwaddr is the type of a physical address (its size can
be different from 'target_ulong'). */
+#ifdef CONFIG_MARU
+#include <inttypes.h>
+#endif //CONFIG_MARU
+
typedef uint64_t hwaddr;
#define HWADDR_MAX UINT64_MAX
#define TARGET_FMT_plx "%016" PRIx64
#ifndef CONFIG_DARWIN
###########################################################
## opengl library for i386
-#obj-$(CONFIG_GL) += virtio-gl.o
-#obj-$(CONFIG_GL) += helper_opengl.o opengl_exec.o mesa_mipmap.o
+obj-$(CONFIG_GL) += virtio-gl.o
+obj-$(CONFIG_GL) += helper_opengl.o opengl_exec.o mesa_mipmap.o
obj-$(CONFIG_NO_GL) += virtio-gl-stub.o
obj-y += gloffscreen_test.o gloffscreen_xcomposite.o gloffscreen_common.o gloffscreen_wgl.o gloffscreen_agl.o
###########################################################
#include <string.h>
#include <stdlib.h>
#include <assert.h>
-#include "osdep.h"
+#include "qemu/osdep.h"
#include "opengl_func.h"
#include "opengl_process.h"
#include "opengl_exec.h"
#define GLX_GLXEXT_PROTOTYPES
#include <mesa_gl.h>
-#include "qemu-queue.h"
+//#include "qemu-queue.h"
#include "opengl_func.h"
#include "mesa_mipmap.h"
#include "opengl_process.h"
#include "mesa_gl.h"
#include "mesa_glext.h"
+#include "exec/hwaddr.h"
#ifdef TARGET_X86_64
#define TARGET_LONG_BITS 64
//#define NEED_CPU_H
//#include "exec.h" // For arg_t typedef
//#undef NEED_CPU_H
-#include "targphys.h"
+//#include "targphys.h"
/* Argument list are internally of a type that can hold a target pointer
* or a host pointer. */
-typedef target_phys_addr_t arg_t;
+//typedef target_phys_addr_t arg_t;
+typedef hwaddr arg_t;
enum {
TYPE_NONE,
#include "hw/hw.h"
#include "maru_device_ids.h"
+#include "hw/virtio/virtio.h"
+#include "exec/hwaddr.h"
-//typedef target_phys_addr_t arg_t;
#include "opengl_process.h"
#include "opengl_exec.h"
#include <sys/time.h>
#define TYPE_VIRTIO_GL "virtio-gl"
+typedef hwaddr arg_t;
int decode_call_int(ProcessStruct *p, char *in_args, int args_len, char *r_buffer);
/* Uncomment to enable debugging - WARNING!!! changes ABI! */