aboutsummaryrefslogtreecommitdiff
path: root/hw/cris/boot.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2020-10-28 06:19:42 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2020-12-10 12:15:07 -0500
commit58a70f169e33446a1a666145faaa1602b8a2ad3d (patch)
treeb5ae7cc220c5de35457fe6ec4ee85dc58bb16943 /hw/cris/boot.c
parent6e504a989dece8136d58f9f7c42f6e22b1ce49ae (diff)
cris: do not use ram_size global
Use the machine properties instead. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/cris/boot.c')
-rw-r--r--hw/cris/boot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/cris/boot.c b/hw/cris/boot.c
index aa8d2756d6..9fa09cfd83 100644
--- a/hw/cris/boot.c
+++ b/hw/cris/boot.c
@@ -81,7 +81,7 @@ void cris_load_image(CRISCPU *cpu, struct cris_load_info *li)
if (image_size < 0) {
/* Takes a kimage from the axis devboard SDK. */
image_size = load_image_targphys(li->image_filename, 0x40004000,
- ram_size);
+ li->ram_size);
li->entry = 0x40004000;
}