From patchwork Wed Nov 21 12:29:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Max Filippov X-Patchwork-Id: 10692519 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AB48113AD for ; Wed, 21 Nov 2018 12:30:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 99DD32BAC2 for ; Wed, 21 Nov 2018 12:30:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8BF7D2BADA; Wed, 21 Nov 2018 12:30:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,FROM_LOCAL_NOVOWEL,HK_RANDOM_FROM, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 088942BAC2 for ; Wed, 21 Nov 2018 12:30:11 +0000 (UTC) Received: from localhost ([::1]:38790 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gPRdy-00030N-Ti for patchwork-qemu-devel@patchwork.kernel.org; Wed, 21 Nov 2018 07:30:10 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42715) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gPRdH-0002a9-6z for qemu-devel@nongnu.org; Wed, 21 Nov 2018 07:29:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gPRdF-00076d-9V for qemu-devel@nongnu.org; Wed, 21 Nov 2018 07:29:27 -0500 Received: from mail-pl1-x644.google.com ([2607:f8b0:4864:20::644]:39099) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gPRdD-0006zR-BN for qemu-devel@nongnu.org; Wed, 21 Nov 2018 07:29:25 -0500 Received: by mail-pl1-x644.google.com with SMTP id b5-v6so5353327pla.6 for ; Wed, 21 Nov 2018 04:29:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=H/RB3AlUxWm18vgqYPPSkRvhS4j6KGY5oMIw47ZUq/w=; b=N0wWBTGrPIrxRUV9dGyiVLLj+6P/ijTSZPvqJqJziMjcN0ge2IQHSHEbFUqPdYda8B WyBNnTbKvCyjKaAteqlRcj4CgEeWFNvp022IFQB6h7+1VgtlAScXVpRlydxniETafTak EzUrndkin2xPMVvqaKi4PZtYr3shl+K0amssiCXKfffZGBxHVpcuNdIUoMH94Zm3xicO 7hW51MC6b6JTHYzaUx7LIpBM/WcC8W5LZifck0/ldDUolnYkO2ZHGSYB/Qp1lQgkHahQ yZLVfrtmjdi3Aozf7x9yreQB8Mbp8Slf/Hs4aocOGTz+0gK6APrkFecIyn1oO6oEI21D 5gGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=H/RB3AlUxWm18vgqYPPSkRvhS4j6KGY5oMIw47ZUq/w=; b=WXvFu4tU8xbfDtUcPXwPh9y+SeK8fACtR5O/e+8VVaiSWgbTG9O8B1+TbQolywpuq0 QzXNp28o5MXP5be0dX3P2dmdPPcjYVBppSDm4+yDSbfE7SAEI1HhLTMfgv1LHr9jZ3t0 jWvEpsctqWIwyVVw70csnjBwRxa+TK9LshbMWyW4Qq9QJWEXYG0hAQ7of5Z+wKfYtnL/ U18p5BigzuttdohbOVrBvqtN2qqUsjae4Z6zIvmaQo8OLEavEI4PPa78DBNmERXKDiVv /tAEuF4wAdYqoJVwIzhC/I2TRGpbeVI7CQsEDBIwI8P4It/QNoQlNsfS3BcVwM3R8E8d OamQ== X-Gm-Message-State: AA+aEWZWi92grE4uDrrGVJSZ1J9aHiefmMaURTlqOhtXJSp+mIfvjlQq z/MlS4KH4gzsj+3xbCIYzvzjl9HURKE= X-Google-Smtp-Source: AFSGD/UP51krUQjdYw8p83rCypQsTr9isfg1cuMkrQJQ7DktIFGJNnCqslCvrU01zOmp27h9wKOGaQ== X-Received: by 2002:a17:902:bd4a:: with SMTP id b10mr6621171plx.232.1542803360344; Wed, 21 Nov 2018 04:29:20 -0800 (PST) Received: from octofox.hsd1.ca.comcast.net. ([2601:641:400:63f0:1ccb:7b9:4960:d75c]) by smtp.gmail.com with ESMTPSA id d68-v6sm52918118pfa.80.2018.11.21.04.29.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Nov 2018 04:29:18 -0800 (PST) From: Max Filippov To: qemu-devel@nongnu.org Date: Wed, 21 Nov 2018 04:29:10 -0800 Message-Id: <20181121122910.20631-1-jcmvbkbc@gmail.com> X-Mailer: git-send-email 2.11.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::644 Subject: [Qemu-devel] [PATCH v2] target/xtensa: xtfpga: provide default memory sizes X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Max Filippov , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Provide default RAM sizes for all XTFPGA boards, so that when started without -m option they do the right thing. Signed-off-by: Max Filippov Reviewed-by: Philippe Mathieu-Daudé --- Changes v1->v2: - fix memory sizes for ml605 and kc705 with MMU hw/xtensa/xtfpga.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hw/xtensa/xtfpga.c b/hw/xtensa/xtfpga.c index b3161de32093..f9d41c5d1875 100644 --- a/hw/xtensa/xtfpga.c +++ b/hw/xtensa/xtfpga.c @@ -568,6 +568,7 @@ static void xtfpga_lx60_class_init(ObjectClass *oc, void *data) mc->init = xtfpga_lx60_init; mc->max_cpus = 4; mc->default_cpu_type = XTENSA_DEFAULT_CPU_TYPE; + mc->default_ram_size = 64 * MiB; } static const TypeInfo xtfpga_lx60_type = { @@ -584,6 +585,7 @@ static void xtfpga_lx60_nommu_class_init(ObjectClass *oc, void *data) mc->init = xtfpga_lx60_nommu_init; mc->max_cpus = 4; mc->default_cpu_type = XTENSA_DEFAULT_CPU_NOMMU_TYPE; + mc->default_ram_size = 64 * MiB; } static const TypeInfo xtfpga_lx60_nommu_type = { @@ -600,6 +602,7 @@ static void xtfpga_lx200_class_init(ObjectClass *oc, void *data) mc->init = xtfpga_lx200_init; mc->max_cpus = 4; mc->default_cpu_type = XTENSA_DEFAULT_CPU_TYPE; + mc->default_ram_size = 96 * MiB; } static const TypeInfo xtfpga_lx200_type = { @@ -616,6 +619,7 @@ static void xtfpga_lx200_nommu_class_init(ObjectClass *oc, void *data) mc->init = xtfpga_lx200_nommu_init; mc->max_cpus = 4; mc->default_cpu_type = XTENSA_DEFAULT_CPU_NOMMU_TYPE; + mc->default_ram_size = 96 * MiB; } static const TypeInfo xtfpga_lx200_nommu_type = { @@ -632,6 +636,7 @@ static void xtfpga_ml605_class_init(ObjectClass *oc, void *data) mc->init = xtfpga_ml605_init; mc->max_cpus = 4; mc->default_cpu_type = XTENSA_DEFAULT_CPU_TYPE; + mc->default_ram_size = 384 * MiB; } static const TypeInfo xtfpga_ml605_type = { @@ -648,6 +653,7 @@ static void xtfpga_ml605_nommu_class_init(ObjectClass *oc, void *data) mc->init = xtfpga_ml605_nommu_init; mc->max_cpus = 4; mc->default_cpu_type = XTENSA_DEFAULT_CPU_NOMMU_TYPE; + mc->default_ram_size = 256 * MiB; } static const TypeInfo xtfpga_ml605_nommu_type = { @@ -664,6 +670,7 @@ static void xtfpga_kc705_class_init(ObjectClass *oc, void *data) mc->init = xtfpga_kc705_init; mc->max_cpus = 4; mc->default_cpu_type = XTENSA_DEFAULT_CPU_TYPE; + mc->default_ram_size = 896 * MiB; } static const TypeInfo xtfpga_kc705_type = { @@ -680,6 +687,7 @@ static void xtfpga_kc705_nommu_class_init(ObjectClass *oc, void *data) mc->init = xtfpga_kc705_nommu_init; mc->max_cpus = 4; mc->default_cpu_type = XTENSA_DEFAULT_CPU_NOMMU_TYPE; + mc->default_ram_size = 256 * MiB; } static const TypeInfo xtfpga_kc705_nommu_type = {