From patchwork Tue Nov 20 20:38:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Filippov X-Patchwork-Id: 10691189 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 B404E1709 for ; Tue, 20 Nov 2018 20:39:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8E1E82ADDB for ; Tue, 20 Nov 2018 20:39:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 803722ADF9; Tue, 20 Nov 2018 20:39:31 +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=-7.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,FROM_LOCAL_NOVOWEL,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 1509C2ADDB for ; Tue, 20 Nov 2018 20:39:31 +0000 (UTC) Received: from localhost ([::1]:35803 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gPCny-00053F-D9 for patchwork-qemu-devel@patchwork.kernel.org; Tue, 20 Nov 2018 15:39:30 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50162) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gPCn2-0004Lo-QU for qemu-devel@nongnu.org; Tue, 20 Nov 2018 15:38:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gPCn0-0007ay-Nj for qemu-devel@nongnu.org; Tue, 20 Nov 2018 15:38:32 -0500 Received: from mail-lj1-x243.google.com ([2a00:1450:4864:20::243]:43308) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gPCmy-0007Up-M0 for qemu-devel@nongnu.org; Tue, 20 Nov 2018 15:38:30 -0500 Received: by mail-lj1-x243.google.com with SMTP id 83-v6so2818503ljf.10 for ; Tue, 20 Nov 2018 12:38:26 -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=Z5rqsU5fSC7ksCGo9n5XarirWCqjp87Xv+IpRn5egjU=; b=OUgn5syzhMBnciKy96PFz8dmU+bQhCObVXxlcpDvWwbEnlAJldi2Oele/CxjyF2v6E B69lMFzC3VLcaijQ5y4d3ymMH2WwSjA/gD93rAjP+XRhB2jELofFAf3WGAVNe0crdDQh GtTKU/woQJPxb/gai6sUp0QPd5UBtIUimY2uHg1nrdn9psZLdb0uKpPFfcwJEfFk/Hpe dp/59rBViAn/wt7Qc28advqaVFTdkweSMOGwfHsCiFpLvkLzPethAD2jELd4DZTbnXx5 +c4g35R662bQzPII9t0J+E+bKmtkRWWWeZhVeesEjnnZBKTsJVcH2m97RcWyNgFmU/dT nHYw== 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=Z5rqsU5fSC7ksCGo9n5XarirWCqjp87Xv+IpRn5egjU=; b=U1RhuGHLMXXbUXglUo7edgxz1JXZX6sJMMZcbtDoFbm8k5zM2VSQi2Thw8733KMujJ 6G/fQtGS+SIdsxq1bTtxAXwtleUMQlmBJyxVG1vnIT+e6YRGHuUS+x3w3EcjpF00CAf7 hMu12dgujPThZcaD7I+fZX1gqWssgh0yDk+xJE1ti4t9JkCbODwx5rol5T+3RvsyB4t0 42qWIizmpmd5stdLIdeWLHO2t+oUUJ6sIx90thMQ/x0sBwhJCa90IeDG02m+kyLb3v1O sw5LYEWilH3iFQRvGWgZLFBs4YPigTezWFi0FVtdgvrI2Ft7Yw8QI8Xll+j8ycrgwOGi cA9g== X-Gm-Message-State: AA+aEWaPPzWnjDC0k2UrwDI3TQ2xIGz7Ueza03P0GR4wi5NjczSS9hd3 pfGdtWGFpnR9RNQx2WRY0HOLzKpyFKw= X-Google-Smtp-Source: AJdET5fdmU8lHlFpHEZyI2lOHlVfcVzERxpcVW1lzD0VXIJv5sFkkjMrlETPEOms+kThDwC+uvFAeg== X-Received: by 2002:a2e:2416:: with SMTP id k22-v6mr2410546ljk.80.1542746304674; Tue, 20 Nov 2018 12:38:24 -0800 (PST) Received: from octofox.cadence.com (jcmvbkbc-1-pt.tunnel.tserv24.sto1.ipv6.he.net. [2001:470:27:1fa::2]) by smtp.gmail.com with ESMTPSA id w9sm6028383lfc.66.2018.11.20.12.38.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Nov 2018 12:38:24 -0800 (PST) From: Max Filippov To: qemu-devel@nongnu.org Date: Tue, 20 Nov 2018 12:38:11 -0800 Message-Id: <20181120203811.18406-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: 2a00:1450:4864:20::243 Subject: [Qemu-devel] [PATCH] 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 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 --- hw/xtensa/xtfpga.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hw/xtensa/xtfpga.c b/hw/xtensa/xtfpga.c index b3161de32093..7c1421d5beb4 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 = 256 * 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 = 1 * GiB; } 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 = {