include config.mak
-ifndef CONFIG_DYNGEN_OP
-CC=$(HOST_CC)
-endif
-
TARGET_BASE_ARCH:=$(TARGET_ARCH)
ifeq ($(TARGET_ARCH), x86_64)
TARGET_BASE_ARCH:=i386
#ifndef _EXEC_ALL_H_
#define _EXEC_ALL_H_
/* allow to see translation results - the slowdown should be negligible, so we leave it */
-//#define DEBUG_DISAS
+#define DEBUG_DISAS
/* is_jmp field values */
#define DISAS_NEXT 0 /* next instruction can be analyzed */
void call_pal (CPUState *env, int palcode)
{
- target_long ret;
+ target_ulong ret;
if (logfile != NULL)
fprintf(logfile, "%s: palcode %02x\n", __func__, palcode);
/* fd support */
-void enable_sigio_timer(int fd);
-
static TAPState *net_tap_fd_init(VLANState *vlan, int fd)
{
TAPState *s;
if (!s)
return NULL;
s->fd = fd;
- enable_sigio_timer(fd);
s->vc = qemu_new_vlan_client(vlan, tap_receive, NULL, s);
qemu_set_fd_handler(s->fd, tap_send, NULL, s);
snprintf(s->vc->info_str, sizeof(s->vc->info_str), "tap: fd=%d", fd);
default:
goto die;
}
+ /* Stop translation as we may have switched the execution mode */
+ ctx->bstate = BS_STOP;
break;
case 12:
switch (sel) {
default:
goto die;
}
+ /* Stop translation as we may have switched the execution mode */
+ ctx->bstate = BS_STOP;
break;
case 12:
switch (sel) {
#define RTC_FREQ 1024
-void enable_sigio_timer(int fd)
+static void enable_sigio_timer(int fd)
{
struct sigaction act;