Revision aaed909a target-sparc/cpu.h
b/target-sparc/cpu.h | ||
---|---|---|
165 | 165 |
/* 2 <= NWINDOWS <= 32. In QEMU it must also be a power of two. */ |
166 | 166 |
#define NWINDOWS 8 |
167 | 167 |
|
168 |
typedef struct sparc_def_t sparc_def_t; |
|
169 |
|
|
170 | 168 |
#if !defined(TARGET_SPARC64) |
171 | 169 |
#define NB_MMU_MODES 2 |
172 | 170 |
#else |
... | ... | |
270 | 268 |
} while (0) |
271 | 269 |
#endif |
272 | 270 |
|
273 |
CPUSPARCState *cpu_sparc_init(void);
|
|
271 |
CPUSPARCState *cpu_sparc_init(const char *cpu_model);
|
|
274 | 272 |
int cpu_sparc_exec(CPUSPARCState *s); |
275 | 273 |
int cpu_sparc_close(CPUSPARCState *s); |
276 |
int sparc_find_by_name (const unsigned char *name, const sparc_def_t **def); |
|
277 | 274 |
void sparc_cpu_list (FILE *f, int (*cpu_fprintf)(FILE *f, const char *fmt, |
278 | 275 |
...)); |
279 |
int cpu_sparc_register (CPUSPARCState *env, const sparc_def_t *def, |
|
280 |
unsigned int cpu); |
|
276 |
void cpu_sparc_set_id(CPUSPARCState *env, unsigned int cpu); |
|
281 | 277 |
|
282 | 278 |
#define GET_PSR(env) (env->version | (env->psr & PSR_ICC) | \ |
283 | 279 |
(env->psref? PSR_EF : 0) | \ |
Also available in: Unified diff