mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
exec: Change cpu_memory_rw_debug() argument to CPUState
Propagate X86CPU in kvmvapic for simplicity. Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
00b941e581
commit
f17ec444c3
13 changed files with 77 additions and 73 deletions
|
@ -356,6 +356,7 @@ void dump_mmu(FILE *f, fprintf_function cpu_fprintf, CPUSPARCState *env)
|
|||
int target_memory_rw_debug(CPUSPARCState *env, target_ulong addr,
|
||||
uint8_t *buf, int len, int is_write)
|
||||
{
|
||||
CPUState *cs = CPU(sparc_env_get_cpu(env));
|
||||
int i;
|
||||
int len1;
|
||||
int cwp = env->cwp;
|
||||
|
@ -390,7 +391,7 @@ int target_memory_rw_debug(CPUSPARCState *env, target_ulong addr,
|
|||
/* Handle access before this window. */
|
||||
if (addr < fp) {
|
||||
len1 = fp - addr;
|
||||
if (cpu_memory_rw_debug(env, addr, buf, len1, is_write) != 0) {
|
||||
if (cpu_memory_rw_debug(cs, addr, buf, len1, is_write) != 0) {
|
||||
return -1;
|
||||
}
|
||||
addr += len1;
|
||||
|
@ -426,7 +427,7 @@ int target_memory_rw_debug(CPUSPARCState *env, target_ulong addr,
|
|||
}
|
||||
}
|
||||
}
|
||||
return cpu_memory_rw_debug(env, addr, buf, len, is_write);
|
||||
return cpu_memory_rw_debug(cs, addr, buf, len, is_write);
|
||||
}
|
||||
|
||||
#else /* !TARGET_SPARC64 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue