Ryan O'Leary has uploaded this change for review. ( https://review.coreboot.org/28945
Change subject: em100: Increase maximum ROM size to 64MB ......................................................................
em100: Increase maximum ROM size to 64MB
The previous maximum ROM size was 16MB. This is necessary to use em100 for emulating flash parts larger than 16MB, but I do not make any promise that all flash parts larger than 16MB will work.
Change-Id: I94385eb9a46853e50550aa43aaa4822f24a0b095 Signed-off-by: Ryan O'Leary ryanoleary@google.com --- M em100.c 1 file changed, 3 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/em100 refs/changes/45/28945/1
diff --git a/em100.c b/em100.c index d4c215a..4673266 100644 --- a/em100.c +++ b/em100.c @@ -748,8 +748,8 @@ }
if (read_filename) { - /* largest size - 16MB */ - int maxlen = desiredchip ? chip->size : 0x1000000; + /* largest size - 64MB */ + int maxlen = desiredchip ? chip->size : 0x4000000; void *data = malloc(maxlen); if (data == NULL) { printf("FATAL: couldn't allocate memory\n"); @@ -775,7 +775,7 @@ }
if (filename) { - int maxlen = 0x1000000; /* largest size - 16MB */ + int maxlen = 0x4000000; /* largest size - 64MB */ void *data = malloc(maxlen); if (data == NULL) { printf("FATAL: couldn't allocate memory\n");