Patchwork [v2,1/6] hw/arm_boot.c: Make ram_size a uint64_t

login
register
mail settings
Submitter Peter Maydell
Date July 16, 2012, 1:24 p.m.
Message ID <1342445056-9129-2-git-send-email-peter.maydell@linaro.org>
Download mbox | patch
Permalink /patch/171189/
State New
Headers show

Comments

Peter Maydell - July 16, 2012, 1:24 p.m.
Make the RAM size in arm_boot_info a uint64_t so it can express
the larger RAM sizes that may be seen in LPAE systems.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
 hw/arm-misc.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Peter A. G. Crosthwaite - July 18, 2012, 12:25 p.m.
On Mon, Jul 16, 2012 at 11:24 PM, Peter Maydell
<peter.maydell@linaro.org> wrote:
> Make the RAM size in arm_boot_info a uint64_t so it can express
> the larger RAM sizes that may be seen in LPAE systems.
>
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>

Reviewed-by: Peter A. G. Crosthwaite <peter.crosthwaite@petalogix.com>

> ---
>  hw/arm-misc.h |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/hw/arm-misc.h b/hw/arm-misc.h
> index 1f96229..bdd8fec 100644
> --- a/hw/arm-misc.h
> +++ b/hw/arm-misc.h
> @@ -25,7 +25,7 @@ qemu_irq *armv7m_init(MemoryRegion *address_space_mem,
>
>  /* arm_boot.c */
>  struct arm_boot_info {
> -    int ram_size;
> +    uint64_t ram_size;
>      const char *kernel_filename;
>      const char *kernel_cmdline;
>      const char *initrd_filename;
> --
> 1.7.5.4
>

Patch

diff --git a/hw/arm-misc.h b/hw/arm-misc.h
index 1f96229..bdd8fec 100644
--- a/hw/arm-misc.h
+++ b/hw/arm-misc.h
@@ -25,7 +25,7 @@  qemu_irq *armv7m_init(MemoryRegion *address_space_mem,
 
 /* arm_boot.c */
 struct arm_boot_info {
-    int ram_size;
+    uint64_t ram_size;
     const char *kernel_filename;
     const char *kernel_cmdline;
     const char *initrd_filename;