From patchwork Wed Oct 11 14:07:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 731972 Delivered-To: patch@linaro.org Received: by 2002:a5d:54d1:0:b0:31d:da82:a3b4 with SMTP id x17csp431945wrv; Wed, 11 Oct 2023 07:08:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFuAw5U8TwrR7Db3wIdCMTwLp2VcqKQChs9xL5xhoGLAO7SSc5YabJVJdFTzyNs4hRBAhBW X-Received: by 2002:a0c:f005:0:b0:66d:4e1:3d29 with SMTP id z5-20020a0cf005000000b0066d04e13d29mr2614518qvk.43.1697033319724; Wed, 11 Oct 2023 07:08:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697033319; cv=none; d=google.com; s=arc-20160816; b=xm1sz4ceQjbaQ5+F4yPMvR8ORznlV4Ko8t7yWPbMSGWLdlE9Q/cZwKk9SC+1PnYbCK FOTQ4ClEAO9MPr8MvVV4Cy9597zQy6ijbySEa1RxKEGi8IQAgmUFvrra+8BFa7roCiHM 7Z6FM7eFYRcYXlEHbCxcXN6ndiQbberWjo5JvPqp5scwMxFByM0zwl46PnfU7h+kZNmh ipCilVML5gnloEEIqlyD5Pq0BNlfwdHFalWgEophxlTZMEqHdIrgGFYV7wyRcxhSU6qP aLzD3DHGlMMmLY/i4anUJT6nRda7AOsDIUq91u1lQSzWRqBhAJPAFyBMXdvtVuuaECu8 mxfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=KoDUpCbTedzPU30CQb9d9uvflh1nTk1L9uLqEJ+jbds=; fh=TFDr41LLJmu57o5DjxbK1TSDqViWQXqsPJXNKo7qEAs=; b=rsuN9ZyZ/YfOtC2W9RTfX6RdyosZw+aXnolUWrngjqbRRxxsUnNOpTgwruCriHklAx 0S+MUAlAsinQQISkJmB3W38eMi0vDWIs9NWqHOudRLumoBZd591IzIJod2Wl49Q8SV/e 7NfT/VJ3F9wplA3y7ldQrYpuQL4l+JeF0yMBCuj/wO9LQoAxYZw/a4XndvJryZZxiV5g 4WuxPaje8T3Apaa5/KH2fGd2tycFm70wHhowGBf/aWf8L0JMyPB0qUjmao1SLDsELDe1 n3NyRHgO6BqeSK5PDGEnsxTR0C50HsnsvAFsEyw9EXk63cP3S/pAzjDCDkDF9YmEiaEw OEkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iLKg3bSo; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id b26-20020a0cb3da000000b00655decdc34dsi9337157qvf.391.2023.10.11.07.08.39 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 11 Oct 2023 07:08:39 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iLKg3bSo; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qqZsc-0000E5-CX; Wed, 11 Oct 2023 10:08:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qqZsP-0008Rc-7p for qemu-devel@nongnu.org; Wed, 11 Oct 2023 10:07:54 -0400 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qqZsM-0007FH-Pw for qemu-devel@nongnu.org; Wed, 11 Oct 2023 10:07:53 -0400 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-40684f53bfcso63867665e9.0 for ; Wed, 11 Oct 2023 07:07:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697033268; x=1697638068; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=KoDUpCbTedzPU30CQb9d9uvflh1nTk1L9uLqEJ+jbds=; b=iLKg3bSopm2nhrNM8L1r2ItPIhTXalwhpy/uFBwIZiov/5866RyzSJqyNyiwTO2qKC ULOXhhXCHGkLru4/CZbuJ1E/1ezVmYayZm4tWwcIJfTuxdm/8ZYhvn1aO2lDVp83LqZJ 1N0Z9a9fO8jYLRhyamDYO1zdXoq8TRL3hkGJPKNcHOsgY2fAfCmZxrU5CZGVGJfcmVsg 5ZVMcmiAPh1xewS1ylZ3laCAxQtTeaOHcOG9xJuXLCnaWO1x7rwtwIurDP/jeLgH+1RS GFxNokI6O7FcH/XQGlogYqaRmOO72+Mr6Xkw0ksOIQmvONG22Kt6pCMZbHK6FJ/stzXs NBzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697033268; x=1697638068; 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:message-id:reply-to; bh=KoDUpCbTedzPU30CQb9d9uvflh1nTk1L9uLqEJ+jbds=; b=YpyIdbWO58Tpvcx5iCldqE4tT+lrPtbzXaOCFf3vW0RWto5IrCHU4UYgj3f3agQmgi s+8rGAoyHUoVkZGaJxNufgf51rVddzfYQTKyy03iWCwhmIkaIBahimaJEmxuNNaF4xPS KKOHu8LH4ofe+KF7+C/jGqAZeVzX0SKy18pFMcFsVh0tKFjh8itSWAFXgxCTIQRayS4g tGlazLGsX10aoQqZ6rtRdHiD9rb8mN6+ZYWmWgm/FEDWtLZ+vbdAfOmLoFmqPRyusM8o /tj+qWdW4GWkF0S70oszHkoHxNn9nbhPXpwoKrudT6bs5duGHwh8UMN2kaubr5QaX8Rh aJYQ== X-Gm-Message-State: AOJu0YwJws3hUWyRnRJd1XCqPEzoJCyY9RTn1ZWp9IzVnVbaD820ETje XZ2YlklDm9fiy9PVKfULgj2NNUd8Hi8f4kdVkhA= X-Received: by 2002:a05:600c:231a:b0:405:3a14:aa1a with SMTP id 26-20020a05600c231a00b004053a14aa1amr18051202wmo.18.1697033268480; Wed, 11 Oct 2023 07:07:48 -0700 (PDT) Received: from m1x-phil.lan (mdq11-h01-176-173-161-48.dsl.sta.abo.bbox.fr. [176.173.161.48]) by smtp.gmail.com with ESMTPSA id z19-20020a7bc7d3000000b0040641a9d49bsm16646145wmk.17.2023.10.11.07.07.46 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 11 Oct 2023 07:07:48 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Markus Armbruster , BALATON Zoltan , qemu-trivial@nongnu.org, qemu-ppc@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v2 1/2] MAINTAINERS: Cover hw/ppc/ppc440_uc.c with Sam460ex board Date: Wed, 11 Oct 2023 16:07:20 +0200 Message-ID: <20231011140721.3469-2-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231011140721.3469-1-philmd@linaro.org> References: <20231011140721.3469-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::330; envelope-from=philmd@linaro.org; helo=mail-wm1-x330.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org hw/ppc/ppc440_uc.c implements the TYPE_PPC460EX_PCIE_HOST device, which is used by the aCube Sam460ex board. Signed-off-by: Philippe Mathieu-Daudé Acked-by: BALATON Zoltan --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9e7dec4a58..8c07d07927 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1482,6 +1482,7 @@ M: BALATON Zoltan L: qemu-ppc@nongnu.org S: Maintained F: hw/ppc/sam460ex.c +F: hw/ppc/ppc440_uc.c F: hw/ppc/ppc440_pcix.c F: hw/display/sm501* F: hw/ide/sii3112.c From patchwork Wed Oct 11 14:07:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 731971 Delivered-To: patch@linaro.org Received: by 2002:a5d:54d1:0:b0:31d:da82:a3b4 with SMTP id x17csp431780wrv; Wed, 11 Oct 2023 07:08:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF3fVKWtMZhCxNDYyhbq/xNr6IiPS9g2GnUnspwYCkZnMsue5N/WRms46fKdwbUh/HYX73B X-Received: by 2002:a0c:ab06:0:b0:658:2220:d833 with SMTP id h6-20020a0cab06000000b006582220d833mr19117699qvb.0.1697033305213; Wed, 11 Oct 2023 07:08:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697033305; cv=none; d=google.com; s=arc-20160816; b=aiOgtrrKXGWum2jm78/W5z0HoNMKQSp1iV1eI/BBFnFGAt+jR1JZG76X4J8PKU4ZmQ +C3HGbj5icbxNfH4dv2X0d/Ejwj2d/nWQ6LeUgGnmLRZy+58wVeeLk0UNSwJlOL5YjLQ 8Yvm3SiOTAATbp3tteLpAsasSCH2btLsEFgHC8qZqgRcp8Td816gXZpQVvxbqGO414QZ +FTBHgHCRYXtroGCIbNS/JzZ3uJRk6/TLnwBtT4mfXyTc2TzPnB+qM51e9iqzm3CCjZR DeDGBu5COraRATFXp+NnpkkvufBcQ2oDK7RF8K3yz2CrFb71Kb3FuVOFM5OEMHDbWU1V q4ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=usve4PUujmMl+yMklSEmrKUgOD9wFrihCQZTy1/EuhY=; fh=TFDr41LLJmu57o5DjxbK1TSDqViWQXqsPJXNKo7qEAs=; b=zabIVz1C7kAcejH/Pgm+1ciHEkIpNzjo2btoAuolvsuak0WdJKk8f7ltgwNTOVqVMQ ZcamAPLtcqhSWkx9/aoDXuQkvNQstiJqUNi36P+ZhJ5ett7fbC9VZDCi+oFpLxKZ85L/ p8gGWxrLN1YR1TFvP1VAT2CQRqaQ6osjt1yWu7meXko73fAh1aC5A1snx/phvtPfm1uI rqDOIw6jZeQfyt9LpkMq3QzRXpxwMjwtltlDy1/tPtZ7b14wivcjEDU/UvHv1blKm7pY lut9SWm9OqyAalpGihhdK9xCawmf/pcjWLA2rHASqdTeeNmGbJ3OPoOvBItYIDG/Vot0 Zh2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ADxQmNiQ; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id i21-20020a0cab55000000b0066d0418fc25si1315611qvb.267.2023.10.11.07.08.24 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 11 Oct 2023 07:08:25 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ADxQmNiQ; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qqZsc-0000EJ-FY; Wed, 11 Oct 2023 10:08:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qqZsX-0000AL-BF for qemu-devel@nongnu.org; Wed, 11 Oct 2023 10:08:01 -0400 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qqZsT-0007GR-NI for qemu-devel@nongnu.org; Wed, 11 Oct 2023 10:08:00 -0400 Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-405361bb9f7so64356455e9.2 for ; Wed, 11 Oct 2023 07:07:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697033275; x=1697638075; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=usve4PUujmMl+yMklSEmrKUgOD9wFrihCQZTy1/EuhY=; b=ADxQmNiQFcEO00e+80m2JT63capjTnnspS7C3dekT7hrjde8ZZq3hWMBs5prFHQo93 CV8y5BTeNj+y84SXmguySa8bA+/fB5A5EoOjwTrPLIFXGPDMuzX1x86NEpwtGwhnuOkC RB1uqKs9Ms5+j86OZT420ytnM0QSmnoSx5qyUQUJt6R4zpa6p/aOnfYy9veVhJ4aDKUb h+MeKKaCAJctVNCviJxZMJJbebcghprQc7L30ZKGgEaWB9bohbnJigmTvjNvHHm1Vc4e 7iBNoVuXOD06K/+5oCrL36/fLzvEYwDO0Tl38G5CLajwyfEapJRgvfIY311DQP+fnze4 zW+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697033275; x=1697638075; 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:message-id:reply-to; bh=usve4PUujmMl+yMklSEmrKUgOD9wFrihCQZTy1/EuhY=; b=WJSCS5rExxBpr9HBRCF7O6pQhCSeSSc3mwp5YD9MuG7EpMTQ2Ev/7U9X5/rgF0nsnE Yhq9Nm/5CLFOsv5PPyzetpSixAVOWojWxn9yxH3BPyDfPRiXCqMmqoiE9Spje1bI14lW HWF91Dn+gw56af8/UXjyVD4KTVPOPWe4niWSey0ggc0CIBS2ZcpXfHHidP58utEE+RNm RODdbVWIVTIQqoCH0G0nYJG6t3dbWzaTNj73aMsg8U1YgRenNvB3piw0zffYPmUPtFGR Umm92Ue1iM/xNqOeBJykvILSYU7UA62o3yiMIs3x9cXzMc7j7qlEx1bdKBOeSZdat3p5 2sFw== X-Gm-Message-State: AOJu0YzngCgU1caBdW3gfQsloSNecdGTpZU7+mDtoOD7EJGA+4P5HFcr vWsByiCUcXff7UPpJKybP/EzqE/o0G7gqQTC0eo= X-Received: by 2002:a7b:c394:0:b0:406:51a0:17fd with SMTP id s20-20020a7bc394000000b0040651a017fdmr17468739wmj.18.1697033275133; Wed, 11 Oct 2023 07:07:55 -0700 (PDT) Received: from m1x-phil.lan (mdq11-h01-176-173-161-48.dsl.sta.abo.bbox.fr. [176.173.161.48]) by smtp.gmail.com with ESMTPSA id 4-20020a05600c248400b004060f0a0fd5sm16912521wms.13.2023.10.11.07.07.53 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 11 Oct 2023 07:07:54 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Markus Armbruster , BALATON Zoltan , qemu-trivial@nongnu.org, qemu-ppc@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v2 2/2] hw/ppc/ppc440_uc: Remove dead l2sram_update_mappings() Date: Wed, 11 Oct 2023 16:07:21 +0200 Message-ID: <20231011140721.3469-3-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231011140721.3469-1-philmd@linaro.org> References: <20231011140721.3469-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32d; envelope-from=philmd@linaro.org; helo=mail-wm1-x32d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Apparently l2sram_update_mappings() bit-rotted over time, when defining MAP_L2SRAM we get: hw/ppc/ppc440_uc.c:83:17: error: no member named 'isarc' in 'struct ppc4xx_l2sram_t' if (l2sram->isarc != isarc || ~~~~~~ ^ hw/ppc/ppc440_uc.c:84:18: error: no member named 'isacntl' in 'struct ppc4xx_l2sram_t' (l2sram->isacntl & 0x80000000) != (isacntl & 0x80000000)) { ~~~~~~ ^ hw/ppc/ppc440_uc.c:85:21: error: no member named 'isacntl' in 'struct ppc4xx_l2sram_t' if (l2sram->isacntl & 0x80000000) { ~~~~~~ ^ hw/ppc/ppc440_uc.c:88:50: error: no member named 'isarc_ram' in 'struct ppc4xx_l2sram_t' &l2sram->isarc_ram); ~~~~~~ ^ hw/ppc/ppc440_uc.c:93:50: error: no member named 'isarc_ram' in 'struct ppc4xx_l2sram_t' &l2sram->isarc_ram); ~~~~~~ ^ hw/ppc/ppc440_uc.c:96:17: error: no member named 'dsarc' in 'struct ppc4xx_l2sram_t' if (l2sram->dsarc != dsarc || ~~~~~~ ^ hw/ppc/ppc440_uc.c:97:18: error: no member named 'dsacntl' in 'struct ppc4xx_l2sram_t' (l2sram->dsacntl & 0x80000000) != (dsacntl & 0x80000000)) { ~~~~~~ ^ hw/ppc/ppc440_uc.c:98:21: error: no member named 'dsacntl' in 'struct ppc4xx_l2sram_t' if (l2sram->dsacntl & 0x80000000) { ~~~~~~ ^ hw/ppc/ppc440_uc.c:100:52: error: no member named 'dsarc' in 'struct ppc4xx_l2sram_t' if (!(isacntl & 0x80000000) || l2sram->dsarc != isarc) { ~~~~~~ ^ hw/ppc/ppc440_uc.c:103:54: error: no member named 'dsarc_ram' in 'struct ppc4xx_l2sram_t' &l2sram->dsarc_ram); ~~~~~~ ^ hw/ppc/ppc440_uc.c:111:54: error: no member named 'dsarc_ram' in 'struct ppc4xx_l2sram_t' &l2sram->dsarc_ram); ~~~~~~ ^ Remove that dead code. Reviewed-by: BALATON Zoltan Signed-off-by: Philippe Mathieu-Daudé --- hw/ppc/ppc440_uc.c | 42 ------------------------------------------ 1 file changed, 42 deletions(-) diff --git a/hw/ppc/ppc440_uc.c b/hw/ppc/ppc440_uc.c index 4181c843a8..7d6ca70387 100644 --- a/hw/ppc/ppc440_uc.c +++ b/hw/ppc/ppc440_uc.c @@ -73,46 +73,6 @@ typedef struct ppc4xx_l2sram_t { uint32_t isram0[11]; } ppc4xx_l2sram_t; -#ifdef MAP_L2SRAM -static void l2sram_update_mappings(ppc4xx_l2sram_t *l2sram, - uint32_t isarc, uint32_t isacntl, - uint32_t dsarc, uint32_t dsacntl) -{ - if (l2sram->isarc != isarc || - (l2sram->isacntl & 0x80000000) != (isacntl & 0x80000000)) { - if (l2sram->isacntl & 0x80000000) { - /* Unmap previously assigned memory region */ - memory_region_del_subregion(get_system_memory(), - &l2sram->isarc_ram); - } - if (isacntl & 0x80000000) { - /* Map new instruction memory region */ - memory_region_add_subregion(get_system_memory(), isarc, - &l2sram->isarc_ram); - } - } - if (l2sram->dsarc != dsarc || - (l2sram->dsacntl & 0x80000000) != (dsacntl & 0x80000000)) { - if (l2sram->dsacntl & 0x80000000) { - /* Beware not to unmap the region we just mapped */ - if (!(isacntl & 0x80000000) || l2sram->dsarc != isarc) { - /* Unmap previously assigned memory region */ - memory_region_del_subregion(get_system_memory(), - &l2sram->dsarc_ram); - } - } - if (dsacntl & 0x80000000) { - /* Beware not to remap the region we just mapped */ - if (!(isacntl & 0x80000000) || dsarc != isarc) { - /* Map new data memory region */ - memory_region_add_subregion(get_system_memory(), dsarc, - &l2sram->dsarc_ram); - } - } - } -} -#endif - static uint32_t dcr_read_l2sram(void *opaque, int dcrn) { ppc4xx_l2sram_t *l2sram = opaque; @@ -193,7 +153,6 @@ static void dcr_write_l2sram(void *opaque, int dcrn, uint32_t val) /*l2sram->isram1[dcrn - DCR_L2CACHE_BASE] = val;*/ break; } - /*l2sram_update_mappings(l2sram, isarc, isacntl, dsarc, dsacntl);*/ } static void l2sram_reset(void *opaque) @@ -203,7 +162,6 @@ static void l2sram_reset(void *opaque) memset(l2sram->l2cache, 0, sizeof(l2sram->l2cache)); l2sram->l2cache[DCR_L2CACHE_STAT - DCR_L2CACHE_BASE] = 0x80000000; memset(l2sram->isram0, 0, sizeof(l2sram->isram0)); - /*l2sram_update_mappings(l2sram, isarc, isacntl, dsarc, dsacntl);*/ } void ppc4xx_l2sram_init(CPUPPCState *env)