From: Aurelien Jarno <aurelien@aurel32.net>
To: Yongbok Kim <yongbok.kim@imgtec.com>
Cc: leon.alrae@imgtec.com, qemu-devel@nongnu.org,
critian.cuna@imgtec.com, agraf@suse.de
Subject: Re: [Qemu-devel] [PATCH] hw: fix to display correct memory size
Date: Wed, 28 Aug 2013 18:48:22 +0200 [thread overview]
Message-ID: <20130828164822.GC23739@ohm.aurel32.net> (raw)
In-Reply-To: <1377269838-13347-1-git-send-email-yongbok.kim@imgtec.com>
On Fri, Aug 23, 2013 at 03:57:18PM +0100, Yongbok Kim wrote:
> A parenthesis placed inappropriately caused displaying
> wrong memory size bigger than 4GB.
>
> Signed-off-by: Yongbok Kim <yongbok.kim@imgtec.com>
> ---
> hw/mips/mips_malta.c | 2 +-
> hw/mips/mips_r4k.c | 2 +-
> hw/ppc/mac_oldworld.c | 2 +-
> 3 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/hw/mips/mips_malta.c b/hw/mips/mips_malta.c
> index f8d064c..23ac1ca 100644
> --- a/hw/mips/mips_malta.c
> +++ b/hw/mips/mips_malta.c
> @@ -954,7 +954,7 @@ void mips_malta_init(QEMUMachineInitArgs *args)
> if (ram_size > (256 << 20)) {
> fprintf(stderr,
> "qemu: Too much memory for this machine: %d MB, maximum 256 MB\n",
> - ((unsigned int)ram_size / (1 << 20)));
> + (unsigned int)(ram_size / (1 << 20)));
> exit(1);
> }
> memory_region_init_ram(ram, NULL, "mips_malta.ram", ram_size);
> diff --git a/hw/mips/mips_r4k.c b/hw/mips/mips_r4k.c
> index 044f232..e8108ac 100644
> --- a/hw/mips/mips_r4k.c
> +++ b/hw/mips/mips_r4k.c
> @@ -201,7 +201,7 @@ void mips_r4k_init(QEMUMachineInitArgs *args)
> if (ram_size > (256 << 20)) {
> fprintf(stderr,
> "qemu: Too much memory for this machine: %d MB, maximum 256 MB\n",
> - ((unsigned int)ram_size / (1 << 20)));
> + (unsigned int)(ram_size / (1 << 20)));
> exit(1);
> }
> memory_region_init_ram(ram, NULL, "mips_r4k.ram", ram_size);
> diff --git a/hw/ppc/mac_oldworld.c b/hw/ppc/mac_oldworld.c
> index 42bb9d5..d7d1758 100644
> --- a/hw/ppc/mac_oldworld.c
> +++ b/hw/ppc/mac_oldworld.c
> @@ -124,7 +124,7 @@ static void ppc_heathrow_init(QEMUMachineInitArgs *args)
> if (ram_size > (2047 << 20)) {
> fprintf(stderr,
> "qemu: Too much memory for this machine: %d MB, maximum 2047 MB\n",
> - ((unsigned int)ram_size / (1 << 20)));
> + (unsigned int)(ram_size / (1 << 20)));
> exit(1);
> }
For the MIPS part:
Acked-by: Aurelien Jarno <aurelien@aurel32.net>
But as already said, it's probably better to wait for the Malta 2GB
patch to be merged first and send it to the trivial patches queue.
--
Aurelien Jarno GPG: 1024D/F1BCDB73
aurelien@aurel32.net http://www.aurel32.net
prev parent reply other threads:[~2013-08-28 16:48 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-23 14:57 [Qemu-devel] [PATCH] hw: fix to display correct memory size Yongbok Kim
2013-08-23 16:20 ` Andreas Färber
2013-08-25 16:11 ` Alexander Graf
2013-08-27 15:47 ` Yongbok Kim
2013-08-25 16:09 ` [Qemu-trivial] " Alexander Graf
2013-08-25 16:09 ` [Qemu-devel] " Alexander Graf
2013-08-28 16:48 ` Aurelien Jarno [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130828164822.GC23739@ohm.aurel32.net \
--to=aurelien@aurel32.net \
--cc=agraf@suse.de \
--cc=critian.cuna@imgtec.com \
--cc=leon.alrae@imgtec.com \
--cc=qemu-devel@nongnu.org \
--cc=yongbok.kim@imgtec.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.