From nobody Fri Dec 19 15:46:26 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1661974459; cv=none; d=zohomail.com; s=zohoarc; b=VVh7M7rTodTQkD9UTRqyU5pOsESgacCgtaeVe8PwWmy5ScyKaS4cgBh/+34PgEY1R38rHZhQb4WOUkyV6fvX0vnauGeeEhGZqbl8pZhYb2c0JnbIyWl0bnaZtz86CeE8IbrtGr2K5ic2UJnc8FCEJTznlFYT6sy04Y07cSa6h7A= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1661974459; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=HH7yYjawwNwarTxu9E0AvdnUoyWYlYh4OWc0LbQzLpg=; b=doH6T/1V5/w1jdxiOqp0JpM92JoK1x6Nr8XTKqC8aKGaXPBCdACK4l9muSN+K4ipp99EOs7gJYW5WYO1J7bUThCV17rSlMajsyvNmuxxccAgzAwrPcR+Aodt5wI+SN52lafZ5Pv6b/GmeMPzW1cL8YOeOjQdsGd3dt3nL6OVgUo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1661974459054472.4322535776097; Wed, 31 Aug 2022 12:34:19 -0700 (PDT) Received: from localhost ([::1]:50502 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oTTTe-0003JX-0T for importer@patchew.org; Wed, 31 Aug 2022 15:34:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60618) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTSp3-0004QM-49; Wed, 31 Aug 2022 14:52:21 -0400 Received: from mail-ot1-x333.google.com ([2607:f8b0:4864:20::333]:44006) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oTSp0-00089U-JE; Wed, 31 Aug 2022 14:52:19 -0400 Received: by mail-ot1-x333.google.com with SMTP id 92-20020a9d0be5000000b0063946111607so10862041oth.10; Wed, 31 Aug 2022 11:52:17 -0700 (PDT) Received: from balboa.COMFAST ([177.189.45.98]) by smtp.gmail.com with ESMTPSA id p4-20020a9d4544000000b0061cbd18bd18sm9599927oti.45.2022.08.31.11.52.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Aug 2022 11:52:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=HH7yYjawwNwarTxu9E0AvdnUoyWYlYh4OWc0LbQzLpg=; b=CDI+WcVkdRY/1XjM6uZwpN6AjI6H3R/CvnHGwB71MG2TSTrHVmRxPmvThHkjWnL6MF HBCjKee08kbK554nB6si29dzle8KlZ5irIg3H++brzSxYAMuWNTIbtMImocq16pJz5pL 6eveUmxJ/Mo8izbKv4tdowAkwb7dyudPJ2RUx677hygHdWZxYFxvKClnGpEYD+XzTphS 8CjscCF6DZZUpruhwk5E5495vzSLF0clRq87rrpl9LQTXSJVnyMsViZIceZJrqbgzpcd w7JCz2zW6eyrjyv4CuJmEZnhYogkuEvAUEBsu3yQNxXOASDRUMBYkThuSm0UYl+OFR/v TVUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=HH7yYjawwNwarTxu9E0AvdnUoyWYlYh4OWc0LbQzLpg=; b=FvuUOtzXmC+X2Nt/Z1A+ITlWIOGjPRhDbgDONiQ/A3dzuvlKSeiOxpgvPeQOu2n9Pp WrXq9xUBmZl0rhl9r9QICTrPwEQOrizrl/mLPDcZ/lgI7kIwMYm+1bIlVmgiTgUI9m0E 4NB4MRmP57p3jYcDO5N2jJYA6rK/3Z1HLrdR2FC+XI7wvk0zNHvVXxq3NtOzK4b20s/K r5+gNN16oGUEJt76lV0b8gGCToxQ2m/xJGIDdk+gSnBT2PfKmhx+rkt/AHlu22OE8nL6 /G2vjtyJ4LZo8FXdNmiVgWBhfOeVEq8P8FsXwe8xBYdA86Yqm8Qj0aF9dVuwDrCm6zmx J8sg== X-Gm-Message-State: ACgBeo3kfNwgv2DvhoensBUfaTgxoIdQJ3HOlsFJzBG91R/szgtxnG/P 9ux+wWTZ4f8yfOcuWOAmH4rWsfeCGgw= X-Google-Smtp-Source: AA6agR7JJLihR28MTytnDCO/rJIyoChGtjDhRbgi6ax52PqJCS3loRxQBMQ/fvb9oappd4zCc1tRIA== X-Received: by 2002:a05:6830:2b0e:b0:638:8646:51ee with SMTP id l14-20020a0568302b0e00b00638864651eemr10663109otv.31.1661971936220; Wed, 31 Aug 2022 11:52:16 -0700 (PDT) From: Daniel Henrique Barboza To: qemu-devel@nongnu.org Cc: qemu-ppc@nongnu.org, danielhb413@gmail.com, peter.maydell@linaro.org, richard.henderson@linaro.org, =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= , BALATON Zoltan Subject: [PULL 33/60] ppc/ppc405: Move SRAM under the ref405ep machine Date: Wed, 31 Aug 2022 15:50:07 -0300 Message-Id: <20220831185034.23240-34-danielhb413@gmail.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220831185034.23240-1-danielhb413@gmail.com> References: <20220831185034.23240-1-danielhb413@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::333; envelope-from=danielhb413@gmail.com; helo=mail-ot1-x333.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1661974460037100001 From: C=C3=A9dric Le Goater It doesn't belong to the generic machine nor the SoC. Fix a typo in the name while we are at it. Signed-off-by: C=C3=A9dric Le Goater Reviewed-by: BALATON Zoltan Message-Id: <20220809153904.485018-5-clg@kaod.org> Signed-off-by: Daniel Henrique Barboza --- hw/ppc/ppc405_boards.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/hw/ppc/ppc405_boards.c b/hw/ppc/ppc405_boards.c index f4794ba40c..381f39aa94 100644 --- a/hw/ppc/ppc405_boards.c +++ b/hw/ppc/ppc405_boards.c @@ -235,7 +235,6 @@ static void ppc405_init(MachineState *machine) MachineClass *mc =3D MACHINE_GET_CLASS(machine); const char *kernel_filename =3D machine->kernel_filename; PowerPCCPU *cpu; - MemoryRegion *sram =3D g_new(MemoryRegion, 1); MemoryRegion *ram_memories =3D g_new(MemoryRegion, 2); hwaddr ram_bases[2], ram_sizes[2]; MemoryRegion *sysmem =3D get_system_memory(); @@ -260,11 +259,6 @@ static void ppc405_init(MachineState *machine) cpu =3D ppc405ep_init(sysmem, ram_memories, ram_bases, ram_sizes, 33333333, &uicdev, kernel_filename =3D=3D NULL ? 0= : 1); =20 - /* allocate SRAM */ - memory_region_init_ram(sram, NULL, "ef405ep.sram", PPC405EP_SRAM_SIZE, - &error_fatal); - memory_region_add_subregion(sysmem, PPC405EP_SRAM_BASE, sram); - /* allocate and load BIOS */ if (machine->firmware) { MemoryRegion *bios =3D g_new(MemoryRegion, 1); @@ -328,9 +322,15 @@ static void ref405ep_init(MachineState *machine) { DeviceState *dev; SysBusDevice *s; + MemoryRegion *sram =3D g_new(MemoryRegion, 1); =20 ppc405_init(machine); =20 + /* allocate SRAM */ + memory_region_init_ram(sram, NULL, "ref405ep.sram", PPC405EP_SRAM_SIZE, + &error_fatal); + memory_region_add_subregion(get_system_memory(), PPC405EP_SRAM_BASE, s= ram); + /* Register FPGA */ ref405ep_fpga_init(get_system_memory(), PPC405EP_FPGA_BASE); /* Register NVRAM */ --=20 2.37.2