From: Antony Pavlov <antonynpavlov@gmail.com>
To: qemu-devel@nongnu.org
Cc: Aurelien Jarno <aurelien@aurel32.net>,
Antony Pavlov <antonynpavlov@gmail.com>,
Paul Brook <paul@codesourcery.com>,
Anthony Liguori <anthony@codemonkey.ws>,
Paolo Bonzini <pbonzini@redhat.com>
Subject: [Qemu-devel] [RFC 2/2] hw/mips: use sizes.h macros
Date: Wed, 4 Sep 2013 11:35:28 +0400 [thread overview]
Message-ID: <1378280128-3826-3-git-send-email-antonynpavlov@gmail.com> (raw)
In-Reply-To: <1378280128-3826-1-git-send-email-antonynpavlov@gmail.com>
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
---
hw/mips/mips_malta.c | 3 ++-
include/hw/mips/bios.h | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/hw/mips/mips_malta.c b/hw/mips/mips_malta.c
index ae0921c..7e8978b 100644
--- a/hw/mips/mips_malta.c
+++ b/hw/mips/mips_malta.c
@@ -51,6 +51,7 @@
#include "sysemu/qtest.h"
#include "qemu/error-report.h"
#include "hw/empty_slot.h"
+#include "sizes.h"
//#define DEBUG_BOARD_INIT
@@ -63,7 +64,7 @@
#define FPGA_ADDRESS 0x1f000000ULL
#define RESET_ADDRESS 0x1fc00000ULL
-#define FLASH_SIZE 0x400000
+#define FLASH_SIZE SZ_4M
#define MAX_IDE_BUS 2
diff --git a/include/hw/mips/bios.h b/include/hw/mips/bios.h
index b4b88ac..e744425 100644
--- a/include/hw/mips/bios.h
+++ b/include/hw/mips/bios.h
@@ -1,6 +1,7 @@
#include "cpu.h"
+#include "sizes.h"
-#define BIOS_SIZE (4 * 1024 * 1024)
+#define BIOS_SIZE SZ_4M
#ifdef TARGET_WORDS_BIGENDIAN
#define BIOS_FILENAME "mips_bios.bin"
#else
--
1.8.4.rc3
next prev parent reply other threads:[~2013-09-04 7:38 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-04 7:35 [Qemu-devel] [RFC 0/2] use sizes.h macros for power-of-two sizes Antony Pavlov
2013-09-04 7:35 ` [Qemu-devel] [RFC 1/2] include/: import sizes.h from barebox Antony Pavlov
2013-09-09 17:32 ` Aurelien Jarno
2013-09-09 17:35 ` Paolo Bonzini
2013-09-09 19:21 ` Stefan Weil
2013-09-09 23:07 ` Richard Henderson
2013-09-04 7:35 ` Antony Pavlov [this message]
2013-09-09 17:33 ` [Qemu-devel] [RFC 2/2] hw/mips: use sizes.h macros Aurelien Jarno
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=1378280128-3826-3-git-send-email-antonynpavlov@gmail.com \
--to=antonynpavlov@gmail.com \
--cc=anthony@codemonkey.ws \
--cc=aurelien@aurel32.net \
--cc=paul@codesourcery.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).