summaryrefslogtreecommitdiffstats
path: root/hw/sh_pci.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-09-20 16:05:47 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-09-20 16:05:47 +0000
commitafcea8cbdea8180b42093377b2c700d1b7f20b7c (patch)
treec638b6c2a483794e5fdb9a520c31337d6178acad /hw/sh_pci.c
parent5e520a7d500ec2569d22d80f9ef4272a34cb3c80 (diff)
downloadhqemu-afcea8cbdea8180b42093377b2c700d1b7f20b7c.zip
hqemu-afcea8cbdea8180b42093377b2c700d1b7f20b7c.tar.gz
ioports: remove unused env parameter and compile only once
The CPU state parameter is not used, remove it and adjust callers. Now we can compile ioport.c once for all targets. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/sh_pci.c')
-rw-r--r--hw/sh_pci.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/hw/sh_pci.c b/hw/sh_pci.c
index ea8635d..4277b01 100644
--- a/hw/sh_pci.c
+++ b/hw/sh_pci.c
@@ -119,32 +119,32 @@ static int sh_pci_addr2port(SHPCIC *pcic, target_phys_addr_t addr)
static void sh_pci_outb (void *p, target_phys_addr_t addr, uint32_t val)
{
- cpu_outb(NULL, sh_pci_addr2port(p, addr), val);
+ cpu_outb(sh_pci_addr2port(p, addr), val);
}
static void sh_pci_outw (void *p, target_phys_addr_t addr, uint32_t val)
{
- cpu_outw(NULL, sh_pci_addr2port(p, addr), val);
+ cpu_outw(sh_pci_addr2port(p, addr), val);
}
static void sh_pci_outl (void *p, target_phys_addr_t addr, uint32_t val)
{
- cpu_outl(NULL, sh_pci_addr2port(p, addr), val);
+ cpu_outl(sh_pci_addr2port(p, addr), val);
}
static uint32_t sh_pci_inb (void *p, target_phys_addr_t addr)
{
- return cpu_inb(NULL, sh_pci_addr2port(p, addr));
+ return cpu_inb(sh_pci_addr2port(p, addr));
}
static uint32_t sh_pci_inw (void *p, target_phys_addr_t addr)
{
- return cpu_inw(NULL, sh_pci_addr2port(p, addr));
+ return cpu_inw(sh_pci_addr2port(p, addr));
}
static uint32_t sh_pci_inl (void *p, target_phys_addr_t addr)
{
- return cpu_inl(NULL, sh_pci_addr2port(p, addr));
+ return cpu_inl(sh_pci_addr2port(p, addr));
}
typedef struct {
OpenPOWER on IntegriCloud