4 * This is a file for stub functions so that compilation is possible
5 * when TCG CPU emulation is disabled during compilation.
7 * Copyright 2007 IBM Corporation.
9 * Jerone Young <jyoung5@us.ibm.com>
10 * This work is licensed under the GNU GPL licence version 2 or later.
25 const unsigned char *name
;
30 powerpc_mmu_t mmu_model
;
31 powerpc_excp_t excp_model
;
32 powerpc_input_t bus_model
;
35 void (*init_proc
)(CPUPPCState
*env
);
36 int (*check_pow
)(CPUPPCState
*env
);
39 int code_copy_enabled
= 0;
41 void cpu_dump_state (CPUState
*env
, FILE *f
,
42 int (*cpu_fprintf
)(FILE *f
, const char *fmt
, ...),
47 void ppc_cpu_list (FILE *f
, int (*cpu_fprintf
)(FILE *f
, const char *fmt
, ...))
51 void cpu_dump_statistics (CPUState
*env
, FILE*f
,
52 int (*cpu_fprintf
)(FILE *f
, const char *fmt
, ...),
57 unsigned long code_gen_max_block_size(void)
62 void cpu_gen_init(void)
66 int cpu_restore_state(TranslationBlock
*tb
,
67 CPUState
*env
, unsigned long searched_pc
,
74 int cpu_ppc_gen_code(CPUState
*env
, TranslationBlock
*tb
, int *gen_code_size_ptr
)
79 void init_proc_ppc440ep_kvm(CPUPPCState
*env
)
84 static ppc_def_t ppc440ep_kvm
= {
86 .mmu_model
= POWERPC_MMU_SOFT_4xx
, /*XXX needed for GDB stub */
87 .init_proc
= init_proc_ppc440ep_kvm
,
90 const ppc_def_t
*cpu_ppc_find_by_name (const unsigned char *name
)
95 int cpu_ppc_register_internal (CPUPPCState
*env
, const ppc_def_t
*def
)
97 env
->mmu_model
= def
->mmu_model
;
98 (*def
->init_proc
)(env
);
102 void flush_icache_range(unsigned long start
, unsigned long stop
)