summaryrefslogtreecommitdiff
path: root/hw/loader.h
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2009-11-12 21:53:11 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2009-11-17 10:38:57 -0600
commit235f86ef01470391925e7edec71638b41ffa5537 (patch)
tree6608c1ed7a492d09ab58569dd0aa9c473826de66 /hw/loader.h
parentff06108b182b83e4c42c89f1724a30217ad7c073 (diff)
downloadqemu-235f86ef01470391925e7edec71638b41ffa5537.tar.gz
qemu-235f86ef01470391925e7edec71638b41ffa5537.tar.bz2
qemu-235f86ef01470391925e7edec71638b41ffa5537.zip
Introduce rom_copy
We have several rom helpers currently, but none of them can get us code that spans several roms into a pointer. This patch introduces a function that copies over rom contents. Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/loader.h')
-rw-r--r--hw/loader.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/loader.h b/hw/loader.h
index 67dae571c3..b3311a3927 100644
--- a/hw/loader.h
+++ b/hw/loader.h
@@ -24,6 +24,7 @@ int rom_add_file(const char *file,
int rom_add_blob(const char *name, const void *blob, size_t len,
target_phys_addr_t min, target_phys_addr_t max, int align);
int rom_load_all(void);
+int rom_copy(uint8_t *dest, target_phys_addr_t addr, size_t size);
void *rom_ptr(target_phys_addr_t addr);
void do_info_roms(Monitor *mon);