aboutsummaryrefslogtreecommitdiff
path: root/target-alpha
diff options
context:
space:
mode:
authorj_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162>2007-04-14 12:17:09 +0000
committerj_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162>2007-04-14 12:17:09 +0000
commite96efcfcb19b81d87ed3baec419b14cdd6e021a4 (patch)
tree8889bad1c84ecf82704c967f9e52351ac3a13822 /target-alpha
parentba13c4327e19c083dd76d69805c5bf3dd44ca46c (diff)
downloadqemu-e96efcfcb19b81d87ed3baec419b14cdd6e021a4.zip
qemu-e96efcfcb19b81d87ed3baec419b14cdd6e021a4.tar.gz
qemu-e96efcfcb19b81d87ed3baec419b14cdd6e021a4.tar.bz2
Fix miscellaneous display warnings for PowerPC & alpha targets
and parallel CFI flash driver. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2661 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-alpha')
-rw-r--r--target-alpha/cpu.h7
-rw-r--r--target-alpha/translate.c3
2 files changed, 9 insertions, 1 deletions
diff --git a/target-alpha/cpu.h b/target-alpha/cpu.h
index a77af17..729d587 100644
--- a/target-alpha/cpu.h
+++ b/target-alpha/cpu.h
@@ -382,6 +382,13 @@ enum {
IR_ZERO = 31,
};
+CPUAlphaState * cpu_alpha_init (void);
+int cpu_alpha_exec(CPUAlphaState *s);
+/* you can call this signal handler from your SIGBUS and SIGSEGV
+ signal handlers to inform the virtual CPU of exceptions. non zero
+ is returned if the signal was handled by the virtual CPU. */
+int cpu_alpha_signal_handler(int host_signum, void *pinfo,
+ void *puc);
int cpu_alpha_mfpr (CPUState *env, int iprn, uint64_t *valp);
int cpu_alpha_mtpr (CPUState *env, int iprn, uint64_t val, uint64_t *oldvalp);
void cpu_loop_exit (void);
diff --git a/target-alpha/translate.c b/target-alpha/translate.c
index 0afd896..08e0624 100644
--- a/target-alpha/translate.c
+++ b/target-alpha/translate.c
@@ -2004,7 +2004,8 @@ int gen_intermediate_code_internal (CPUState *env, TranslationBlock *tb,
#if defined ALPHA_DEBUG_DISAS
insn_count++;
if (logfile != NULL) {
- fprintf(logfile, "pc %016lx mem_idx\n", ctx.pc, ctx.mem_idx);
+ fprintf(logfile, "pc " TARGET_FMT_lx " mem_idx %d\n",
+ ctx.pc, ctx.mem_idx);
}
#endif
insn = ldl_code(ctx.pc);