}
#ifndef CONFIG_WIN32
+#ifdef FS_IOC_GETVERSION
static int local_ioc_getversion(FsContext *ctx, V9fsPath *path,
mode_t st_mode, uint64_t *st_gen)
{
TRACE("[%d][ Enter >> %s]\n", __LINE__, __func__);
int err;
-#ifdef FS_IOC_GETVERSION
V9fsFidOpenState fid_open;
/*
}
err = ioctl(fid_open.fd, FS_IOC_GETVERSION, st_gen);
local_close(ctx, &fid_open);
-#else
- err = -ENOTTY;
-#endif
return err;
}
#endif
+#endif
static int local_init(FsContext *ctx)
{
{
case HAX_EMULATE_STATE_MMIO:
if (cpu->hax_vcpu->resync) {
- hax_prepare_emulation(env);
+ hax_prepare_emulation(env);
cpu->hax_vcpu->resync = 0;
return 0;
}
hax = &hax_global;
memset(hax, 0, sizeof(struct hax_state));
hax->mem_quota = ram_size;
- dprint("ram_size %lx\n", ram_size);
+ dprint("ram_size %llx\n", ram_size);
return 0;
}
if (hax_vcpu_emulation_mode(env))
{
- dprint("Trying to vcpu execute at eip:%lx\n", env->eip);
+ dprint("Trying to vcpu execute at eip:%x\n", env->eip);
return HAX_EMUL_EXITLOOP;
}
-
//hax_cpu_synchronize_state(env);
do {
echo "##### QEMU configuring for emulator"
echo "##### QEMU configure append:" $CONFIGURE_APPEND
./configure \
+ --extra-cflags=-Werror \
--extra-cflags=-mmacosx-version-min=10.4 \
--audio-drv-list=coreaudio \
--enable-shm \