From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36585) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJ5Kt-00024g-W5 for qemu-devel@nongnu.org; Mon, 09 Sep 2013 13:33:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VJ5Ko-0001l5-Fl for qemu-devel@nongnu.org; Mon, 09 Sep 2013 13:33:15 -0400 Received: from hall.aurel32.net ([2001:470:1f0b:4a8::1]:38677) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJ5Ko-0001kv-8W for qemu-devel@nongnu.org; Mon, 09 Sep 2013 13:33:10 -0400 Date: Mon, 9 Sep 2013 19:33:01 +0200 From: Aurelien Jarno Message-ID: <20130909173301.GD4966@ohm.aurel32.net> References: <1378280128-3826-1-git-send-email-antonynpavlov@gmail.com> <1378280128-3826-3-git-send-email-antonynpavlov@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <1378280128-3826-3-git-send-email-antonynpavlov@gmail.com> Subject: Re: [Qemu-devel] [RFC 2/2] hw/mips: use sizes.h macros List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Antony Pavlov Cc: Paolo Bonzini , qemu-devel@nongnu.org, Anthony Liguori , Paul Brook On Wed, Sep 04, 2013 at 11:35:28AM +0400, Antony Pavlov wrote: > Signed-off-by: Antony Pavlov > --- > 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 Besides the comments from the previous patch: Reviewed-by: Aurelien Jarno -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurelien@aurel32.net http://www.aurel32.net