diff options
author | Alexander Graf | 2014-07-13 16:50:39 +0200 |
---|---|---|
committer | Alexander Graf | 2014-09-08 12:50:51 +0200 |
commit | a8b0503701ed8de9353834b0955260f4d9f08640 (patch) | |
tree | 1e74ffd212dbd61835d37a913e89fb0b488e3c32 /hw/nvram/mac_nvram.c | |
parent | PPC: mac99: Fix core99 timer frequency (diff) | |
download | qemu-a8b0503701ed8de9353834b0955260f4d9f08640.tar.gz qemu-a8b0503701ed8de9353834b0955260f4d9f08640.tar.xz qemu-a8b0503701ed8de9353834b0955260f4d9f08640.zip |
PPC: mac_nvram: Remove unused functions
The macio_nvram_read and macio_nvram_write functions are never called,
just remove them.
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'hw/nvram/mac_nvram.c')
-rw-r--r-- | hw/nvram/mac_nvram.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/hw/nvram/mac_nvram.c b/hw/nvram/mac_nvram.c index 170b10b766..bcff074d81 100644 --- a/hw/nvram/mac_nvram.c +++ b/hw/nvram/mac_nvram.c @@ -39,29 +39,6 @@ #define DEF_SYSTEM_SIZE 0xc10 -/* Direct access to NVRAM */ -uint8_t macio_nvram_read(MacIONVRAMState *s, uint32_t addr) -{ - uint32_t ret; - - if (addr < s->size) { - ret = s->data[addr]; - } else { - ret = -1; - } - NVR_DPRINTF("read addr %04" PRIx32 " val %" PRIx8 "\n", addr, ret); - - return ret; -} - -void macio_nvram_write(MacIONVRAMState *s, uint32_t addr, uint8_t val) -{ - NVR_DPRINTF("write addr %04" PRIx32 " val %" PRIx8 "\n", addr, val); - if (addr < s->size) { - s->data[addr] = val; - } -} - /* macio style NVRAM device */ static void macio_nvram_writeb(void *opaque, hwaddr addr, uint64_t value, unsigned size) |