mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
cpu_single_env usage fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1644 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
173d6cfe51
commit
c68ea7043f
15 changed files with 129 additions and 88 deletions
12
hw/pci.c
12
hw/pci.c
|
@ -1616,32 +1616,32 @@ void pci_info(void)
|
|||
|
||||
static __attribute__((unused)) uint32_t isa_inb(uint32_t addr)
|
||||
{
|
||||
return cpu_inb(cpu_single_env, addr);
|
||||
return cpu_inb(NULL, addr);
|
||||
}
|
||||
|
||||
static void isa_outb(uint32_t val, uint32_t addr)
|
||||
{
|
||||
cpu_outb(cpu_single_env, addr, val);
|
||||
cpu_outb(NULL, addr, val);
|
||||
}
|
||||
|
||||
static __attribute__((unused)) uint32_t isa_inw(uint32_t addr)
|
||||
{
|
||||
return cpu_inw(cpu_single_env, addr);
|
||||
return cpu_inw(NULL, addr);
|
||||
}
|
||||
|
||||
static __attribute__((unused)) void isa_outw(uint32_t val, uint32_t addr)
|
||||
{
|
||||
cpu_outw(cpu_single_env, addr, val);
|
||||
cpu_outw(NULL, addr, val);
|
||||
}
|
||||
|
||||
static __attribute__((unused)) uint32_t isa_inl(uint32_t addr)
|
||||
{
|
||||
return cpu_inl(cpu_single_env, addr);
|
||||
return cpu_inl(NULL, addr);
|
||||
}
|
||||
|
||||
static __attribute__((unused)) void isa_outl(uint32_t val, uint32_t addr)
|
||||
{
|
||||
cpu_outl(cpu_single_env, addr, val);
|
||||
cpu_outl(NULL, addr, val);
|
||||
}
|
||||
|
||||
static void pci_config_writel(PCIDevice *d, uint32_t addr, uint32_t val)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue