mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
linux-user: Don't overuse CPUState
In target-specific code use CPU*State. While at it, fix indentation on those lines. Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
e544a19f89
commit
0539024885
4 changed files with 131 additions and 124 deletions
|
@ -71,7 +71,7 @@ void gemu_log(const char *fmt, ...)
|
|||
}
|
||||
|
||||
#if defined(TARGET_I386)
|
||||
int cpu_get_pic_interrupt(CPUState *env)
|
||||
int cpu_get_pic_interrupt(CPUX86State *env)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
@ -247,7 +247,7 @@ void cpu_list_unlock(void)
|
|||
/***********************************************************/
|
||||
/* CPUX86 core interface */
|
||||
|
||||
void cpu_smm_update(CPUState *env)
|
||||
void cpu_smm_update(CPUX86State *env)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -889,7 +889,7 @@ void cpu_loop(CPUARMState *env)
|
|||
|
||||
#ifdef TARGET_UNICORE32
|
||||
|
||||
void cpu_loop(CPUState *env)
|
||||
void cpu_loop(CPUUniCore32State *env)
|
||||
{
|
||||
int trapnr;
|
||||
unsigned int n, insn;
|
||||
|
@ -1226,36 +1226,36 @@ void cpu_loop (CPUSPARCState *env)
|
|||
#endif
|
||||
|
||||
#ifdef TARGET_PPC
|
||||
static inline uint64_t cpu_ppc_get_tb (CPUState *env)
|
||||
static inline uint64_t cpu_ppc_get_tb(CPUPPCState *env)
|
||||
{
|
||||
/* TO FIX */
|
||||
return 0;
|
||||
}
|
||||
|
||||
uint64_t cpu_ppc_load_tbl (CPUState *env)
|
||||
uint64_t cpu_ppc_load_tbl(CPUPPCState *env)
|
||||
{
|
||||
return cpu_ppc_get_tb(env);
|
||||
}
|
||||
|
||||
uint32_t cpu_ppc_load_tbu (CPUState *env)
|
||||
uint32_t cpu_ppc_load_tbu(CPUPPCState *env)
|
||||
{
|
||||
return cpu_ppc_get_tb(env) >> 32;
|
||||
}
|
||||
|
||||
uint64_t cpu_ppc_load_atbl (CPUState *env)
|
||||
uint64_t cpu_ppc_load_atbl(CPUPPCState *env)
|
||||
{
|
||||
return cpu_ppc_get_tb(env);
|
||||
}
|
||||
|
||||
uint32_t cpu_ppc_load_atbu (CPUState *env)
|
||||
uint32_t cpu_ppc_load_atbu(CPUPPCState *env)
|
||||
{
|
||||
return cpu_ppc_get_tb(env) >> 32;
|
||||
}
|
||||
|
||||
uint32_t cpu_ppc601_load_rtcu (CPUState *env)
|
||||
uint32_t cpu_ppc601_load_rtcu(CPUPPCState *env)
|
||||
__attribute__ (( alias ("cpu_ppc_load_tbu") ));
|
||||
|
||||
uint32_t cpu_ppc601_load_rtcl (CPUState *env)
|
||||
uint32_t cpu_ppc601_load_rtcl(CPUPPCState *env)
|
||||
{
|
||||
return cpu_ppc_load_tbl(env) & 0x3FFFFF80;
|
||||
}
|
||||
|
@ -2276,7 +2276,7 @@ done_syscall:
|
|||
#endif
|
||||
|
||||
#ifdef TARGET_SH4
|
||||
void cpu_loop (CPUState *env)
|
||||
void cpu_loop(CPUSH4State *env)
|
||||
{
|
||||
int trapnr, ret;
|
||||
target_siginfo_t info;
|
||||
|
@ -2335,7 +2335,7 @@ void cpu_loop (CPUState *env)
|
|||
#endif
|
||||
|
||||
#ifdef TARGET_CRIS
|
||||
void cpu_loop (CPUState *env)
|
||||
void cpu_loop(CPUCRISState *env)
|
||||
{
|
||||
int trapnr, ret;
|
||||
target_siginfo_t info;
|
||||
|
@ -2393,7 +2393,7 @@ void cpu_loop (CPUState *env)
|
|||
#endif
|
||||
|
||||
#ifdef TARGET_MICROBLAZE
|
||||
void cpu_loop (CPUState *env)
|
||||
void cpu_loop(CPUMBState *env)
|
||||
{
|
||||
int trapnr, ret;
|
||||
target_siginfo_t info;
|
||||
|
@ -2630,7 +2630,7 @@ static void do_store_exclusive(CPUAlphaState *env, int reg, int quad)
|
|||
queue_signal(env, TARGET_SIGSEGV, &info);
|
||||
}
|
||||
|
||||
void cpu_loop (CPUState *env)
|
||||
void cpu_loop(CPUAlphaState *env)
|
||||
{
|
||||
int trapnr;
|
||||
target_siginfo_t info;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue