diff options
author | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-04-10 14:29:45 +0000 |
---|---|---|
committer | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-04-10 14:29:45 +0000 |
commit | 5c130f659b20d53667e07957ebaa3e656f72b276 (patch) | |
tree | 1fce52bae1cfdb3f46599277634769cd50782cb0 /hw/pflash_cfi01.c | |
parent | d397abbdbe68715ec86b4392e4e6384db64d029d (diff) | |
download | qemu-5c130f659b20d53667e07957ebaa3e656f72b276.zip qemu-5c130f659b20d53667e07957ebaa3e656f72b276.tar.gz qemu-5c130f659b20d53667e07957ebaa3e656f72b276.tar.bz2 |
Yet more phys_ram_base elimination.
Signed-off-by: Paul Brook <paul@cofdesourcery.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7067 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/pflash_cfi01.c')
-rw-r--r-- | hw/pflash_cfi01.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/pflash_cfi01.c b/hw/pflash_cfi01.c index e41cf69..9878410 100644 --- a/hw/pflash_cfi01.c +++ b/hw/pflash_cfi01.c @@ -519,7 +519,8 @@ pflash_t *pflash_cfi01_register(target_phys_addr_t base, ram_addr_t off, pfl = qemu_mallocz(sizeof(pflash_t)); - pfl->storage = phys_ram_base + off; + /* FIXME: Allocate ram ourselves. */ + pfl->storage = qemu_get_ram_ptr(off); pfl->fl_mem = cpu_register_io_memory(0, pflash_read_ops, pflash_write_ops, pfl); pfl->off = off; |