From 235f86ef01470391925e7edec71638b41ffa5537 Mon Sep 17 00:00:00 2001 From: Alexander Graf Date: Thu, 12 Nov 2009 21:53:11 +0100 Subject: 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 Signed-off-by: Anthony Liguori --- hw/loader.h | 1 + 1 file changed, 1 insertion(+) (limited to 'hw/loader.h') diff --git a/hw/loader.h b/hw/loader.h index 67dae57..b3311a3 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); -- cgit v1.1