From 8da3ff180974732fc4272cb4433fef85c1822961 Mon Sep 17 00:00:00 2001 From: pbrook Date: Mon, 1 Dec 2008 18:59:50 +0000 Subject: Change MMIO callbacks to use offsets, not absolute addresses. Signed-off-by: Paul Brook git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5849 c046a42c-6fe2-441c-8c8c-71466251a162 --- hw/pflash_cfi01.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'hw/pflash_cfi01.c') diff --git a/hw/pflash_cfi01.c b/hw/pflash_cfi01.c index 57892c251..6113fa648 100644 --- a/hw/pflash_cfi01.c +++ b/hw/pflash_cfi01.c @@ -103,7 +103,6 @@ static uint32_t pflash_read (pflash_t *pfl, target_ulong offset, int width) uint8_t *p; ret = -1; - offset -= pfl->base; boff = offset & 0xFF; /* why this here ?? */ if (pfl->width == 2) @@ -203,7 +202,6 @@ static void pflash_write (pflash_t *pfl, target_ulong offset, uint32_t value, uint8_t cmd; cmd = value; - offset -= pfl->base; DPRINTF("%s: writing offset " TARGET_FMT_lx " value %08x width %d wcycle 0x%x\n", __func__, offset, value, width, pfl->wcycle); -- cgit v1.2.3