mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
hw/i386: remove smram_update
It's easier to inline it now that most of its work is done by the CPU (rather than the chipset) through /machine/smram and the memory API. Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
f809c60512
commit
3de70c0899
4 changed files with 4 additions and 9 deletions
|
@ -138,7 +138,8 @@ static void i440fx_update_memory_mappings(PCII440FXState *d)
|
|||
pam_update(&d->pam_regions[i], i,
|
||||
pd->config[I440FX_PAM + ((i + 1) / 2)]);
|
||||
}
|
||||
smram_update(&d->smram_region, pd->config[I440FX_SMRAM]);
|
||||
memory_region_set_enabled(&d->smram_region,
|
||||
!(pd->config[I440FX_SMRAM] & SMRAM_D_OPEN));
|
||||
memory_region_set_enabled(&d->smram,
|
||||
pd->config[I440FX_SMRAM] & SMRAM_G_SMRAME);
|
||||
memory_region_transaction_commit();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue