From 6ee2297979fb8c18c3ba6161caf278b00724c47a Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Thu, 18 Nov 2010 13:59:33 +0100 Subject: Follow API changes... --- image.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'image.c') diff --git a/image.c b/image.c index 1f12238..c7517bd 100644 --- a/image.c +++ b/image.c @@ -14,10 +14,10 @@ #include #include "nios2sim-ng.h" +#include "memory.h" #include "image.h" -int image_load(const char *image_path, int image_format, uint8_t *mem_base, - size_t mem_size) +int image_load(const char *image_path, int image_format, struct memory *mem) { FILE *fp; loader_func_t loader; @@ -41,7 +41,7 @@ int image_load(const char *image_path, int image_format, uint8_t *mem_base, return -1; } - ret = loader(fp, image_path, mem_base, mem_size); + ret = loader(fp, image_path, mem); fclose(fp); -- cgit v1.2.3-54-g00ecf