mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
target-i386: Pass X86CPU to cpu_x86_set_a20()
Prepares for cpu_interrupt() changing argument to CPUState. While touching it, rename to x86_cpu_...() now that it takes an X86CPU. Signed-off-by: Andreas Färber <afaerber@suse.de> Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
parent
eeb266ded8
commit
cc36a7a2c7
3 changed files with 8 additions and 5 deletions
|
@ -366,8 +366,10 @@ void cpu_dump_state(CPUX86State *env, FILE *f, fprintf_function cpu_fprintf,
|
|||
/* x86 mmu */
|
||||
/* XXX: add PGE support */
|
||||
|
||||
void cpu_x86_set_a20(CPUX86State *env, int a20_state)
|
||||
void x86_cpu_set_a20(X86CPU *cpu, int a20_state)
|
||||
{
|
||||
CPUX86State *env = &cpu->env;
|
||||
|
||||
a20_state = (a20_state != 0);
|
||||
if (a20_state != ((env->a20_mask >> 20) & 1)) {
|
||||
#if defined(DEBUG_MMU)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue