From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60427) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VH7fF-0003Eo-3o for qemu-devel@nongnu.org; Wed, 04 Sep 2013 03:38:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VH7f6-0006Ny-Hm for qemu-devel@nongnu.org; Wed, 04 Sep 2013 03:38:09 -0400 Received: from mail-la0-x22f.google.com ([2a00:1450:4010:c03::22f]:32857) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VH7f6-0006NA-A1 for qemu-devel@nongnu.org; Wed, 04 Sep 2013 03:38:00 -0400 Received: by mail-la0-f47.google.com with SMTP id eo20so5461484lab.6 for ; Wed, 04 Sep 2013 00:37:59 -0700 (PDT) From: Antony Pavlov Date: Wed, 4 Sep 2013 11:35:28 +0400 Message-Id: <1378280128-3826-3-git-send-email-antonynpavlov@gmail.com> In-Reply-To: <1378280128-3826-1-git-send-email-antonynpavlov@gmail.com> References: <1378280128-3826-1-git-send-email-antonynpavlov@gmail.com> Subject: [Qemu-devel] [RFC 2/2] hw/mips: use sizes.h macros List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Aurelien Jarno , Antony Pavlov , Paul Brook , Anthony Liguori , Paolo Bonzini 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 -- 1.8.4.rc3