diff --git a/Makefile.target b/Makefile.target index 3019f44f70e2ecdbaddd7b65f2558cd37d460d62..031ab456ec6b2b80410fc61752c3656c7e163b64 100644 --- a/Makefile.target +++ b/Makefile.target @@ -1,9 +1,5 @@ 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 diff --git a/exec-all.h b/exec-all.h index 95c10cd17986c692d31e17f93930bbbed992e7a5..e3da98a7fc98cbc12dceb6bc63926410a768e9b8 100644 --- a/exec-all.h +++ b/exec-all.h @@ -21,7 +21,7 @@ #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 */ diff --git a/hw/alpha_palcode.c b/hw/alpha_palcode.c index 351bb4879b4ff4203795288babc54d5582c1c6d2..38466dbd8f108440abc493ea97a1293e44fd2f5a 100644 --- a/hw/alpha_palcode.c +++ b/hw/alpha_palcode.c @@ -1059,7 +1059,7 @@ void pal_init (CPUState *env) void call_pal (CPUState *env, int palcode) { - target_long ret; + target_ulong ret; if (logfile != NULL) fprintf(logfile, "%s: palcode %02x\n", __func__, palcode); diff --git a/net.c b/net.c index bb9ea6e7cff52029d576ba9c41d04c4a12fd4f32..35aeb1ece235ff5e5537f80c0cd5a1f9a382dc3b 100644 --- a/net.c +++ b/net.c @@ -622,8 +622,6 @@ static void tap_send(void *opaque) /* fd support */ -void enable_sigio_timer(int fd); - static TAPState *net_tap_fd_init(VLANState *vlan, int fd) { TAPState *s; @@ -632,7 +630,6 @@ static TAPState *net_tap_fd_init(VLANState *vlan, int fd) 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); diff --git a/target-mips/translate.c b/target-mips/translate.c index 03f3fbb827028333ffc1da97a43e4feedf003b0d..386e0e37d1fe8b22bfe908cb68f5e77b8bd869af 100644 --- a/target-mips/translate.c +++ b/target-mips/translate.c @@ -3609,6 +3609,8 @@ static void gen_mtc0 (CPUState *env, DisasContext *ctx, TCGv t0, int reg, int se default: goto die; } + /* Stop translation as we may have switched the execution mode */ + ctx->bstate = BS_STOP; break; case 12: switch (sel) { @@ -4791,6 +4793,8 @@ static void gen_dmtc0 (CPUState *env, DisasContext *ctx, TCGv t0, int reg, int s default: goto die; } + /* Stop translation as we may have switched the execution mode */ + ctx->bstate = BS_STOP; break; case 12: switch (sel) { diff --git a/vl.c b/vl.c index 24c9c32c125bc09bf7a13624d092ee1407462998..7bcffd334ab77c36737b8530696842f4a61b7996 100644 --- a/vl.c +++ b/vl.c @@ -1403,7 +1403,7 @@ static int fcntl_setfl(int fd, int flag) #define RTC_FREQ 1024 -void enable_sigio_timer(int fd) +static void enable_sigio_timer(int fd) { struct sigaction act;