aboutsummaryrefslogtreecommitdiff
path: root/hw/onenand.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/onenand.c')
-rw-r--r--hw/onenand.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/hw/onenand.c b/hw/onenand.c
index c1e7e4d608..46fabedccf 100644
--- a/hw/onenand.c
+++ b/hw/onenand.c
@@ -33,7 +33,7 @@
typedef struct {
uint32_t id;
int shift;
- target_phys_addr_t base;
+ a_target_phys_addr base;
qemu_irq intr;
qemu_irq rdy;
BlockDriverState *bdrv;
@@ -41,7 +41,7 @@ typedef struct {
uint8_t *image;
uint8_t *otp;
uint8_t *current;
- ram_addr_t ram;
+ a_ram_addr ram;
uint8_t *boot[2];
uint8_t *data[2][2];
int iomemtype;
@@ -96,7 +96,7 @@ enum {
ONEN_LOCK_UNLOCKED = 1 << 2,
};
-void onenand_base_update(void *opaque, target_phys_addr_t new)
+void onenand_base_update(void *opaque, a_target_phys_addr new)
{
OneNANDState *s = (OneNANDState *) opaque;
@@ -443,7 +443,7 @@ static void onenand_command(OneNANDState *s, int cmd)
onenand_intr_update(s);
}
-static uint32_t onenand_read(void *opaque, target_phys_addr_t addr)
+static uint32_t onenand_read(void *opaque, a_target_phys_addr addr)
{
OneNANDState *s = (OneNANDState *) opaque;
int offset = addr >> s->shift;
@@ -507,7 +507,7 @@ static uint32_t onenand_read(void *opaque, target_phys_addr_t addr)
return 0;
}
-static void onenand_write(void *opaque, target_phys_addr_t addr,
+static void onenand_write(void *opaque, a_target_phys_addr addr,
uint32_t value)
{
OneNANDState *s = (OneNANDState *) opaque;