From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 2002:a19:6d5:0:0:0:0:0 with SMTP id 204csp6506160lfg; Thu, 4 Mar 2021 11:15:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJxIGUcKzo8tb1IpB4BCESMKM9O9XK8bdveSxF/gsnPgzkvNt110BGSXP8hc0xWpRSuJ2tjD X-Received: by 2002:a05:6e02:20e4:: with SMTP id q4mr5490260ilv.197.1614885327648; Thu, 04 Mar 2021 11:15:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614885327; cv=none; d=google.com; s=arc-20160816; b=tTXmoiWEthraSM9hcCMC+uEdejpCcBxq+8dyChgFHCJyFK0o3n5vg6Tqu9T1HJR5vC OX0L6mKdGJy+gx/HAsC/2s8sNGgIpNigk6kwSv38gIGpWuK1qi+Ne+ll2V5scUzXy1CS NENmbyj1JbwNUQDIWfum2GocmgbWoauegUc+e2qE2rdYl1leUJlrw3JJjOYW0j2GTvDO JX0v4Oy/ECyRtHCSDBCNvmbxgVLOQTikV6nzxcKf8z/3Yeb3gCMWG26iASIzSSOdugjx 6cuGVL8jLR0XcjMk4cuQ6F5YLAh6cRPEJyYEzl1YaR9k/1xESGkW7cUywnTuCh1irSpV ZXUg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=JPc9oB7dI6ihbCTbE3KUAvo77GIk6tsUzTaZREyl+Ek=; b=B0h1HU+t+DKIH4rAap7ahxRQHr+QO+HDx2O/xivrHZ9KpNT3aodUpcuENDLtQ3bjDI XAqGBAGbFSr8IoTTpdnjQ25669RbSkqBguAzke1IJI8hp3/lYyJ0nQQWJ3w6KIbnKyAT ndJuBcIzbtvl1HqP6B7hoVHJYUxNsdZWgd2PvC0J3nmDZV1MfRGra6mN52ZosQAYP49W sIw2eko1cRneFPskvWrXhqAkXQeS9ykzZBB1lEwyUEVLjmkA6J+SKyMOOkigi9CJF7b0 MQe7UzTQ2xe3RyeJRSwjbGLUPLI1375+GikZB0BeNNJcbAx0Kgn0mAWTUyfsKY7pWX3R 2m4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LeR0IBLa; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=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 r7si211640jad.72.2021.03.04.11.15.27 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 04 Mar 2021 11:15:27 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+alex.bennee=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=LeR0IBLa; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:47838 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lHtRW-0006za-Rz for alex.bennee@linaro.org; Thu, 04 Mar 2021 14:15:26 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43392) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lHtPw-00068a-7w for qemu-devel@nongnu.org; Thu, 04 Mar 2021 14:13:48 -0500 Received: from mail-pg1-x530.google.com ([2607:f8b0:4864:20::530]:45935) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lHtPt-0003Om-Nf for qemu-devel@nongnu.org; Thu, 04 Mar 2021 14:13:48 -0500 Received: by mail-pg1-x530.google.com with SMTP id p21so19513515pgl.12 for ; Thu, 04 Mar 2021 11:13:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=JPc9oB7dI6ihbCTbE3KUAvo77GIk6tsUzTaZREyl+Ek=; b=LeR0IBLahJGMTdCd/q3Mnu/O+bM7b9C78/QywTimGNfl/5gelA/plVs195DI1yQSAf m5CPH/+5XFWeX8PBLYbGr9P5RBFnQ2rtqUItI8NyJ4ix2RH+dpQupfh/t/oh+f/hCAKz zrd9F9iiBURFo6ydRErLDoZvVbpga2CsCDT5mQKkjyba+eB6DoMqPhXl3+Urso2L1FL1 gpuwWQ0P29pnuX0Up3U+FRgRbu2XEN+4OkiO/JqUeYyFXJdZ/chI4x7kk29JZ4M4v44B 292soAqAnDvDYFQ2Xnw2/yDyL/3Z0PxwteYTLIDq3bGYPm8+VwbNirPLmV1ZgOTceWze Qhxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=JPc9oB7dI6ihbCTbE3KUAvo77GIk6tsUzTaZREyl+Ek=; b=kevYUbzXKw8Kll4uDR9AuRa3oFK8f1mxFK/Lvjx3q6h7zjGNpZ72u5lwFRxx2c6zGU 89uGgPy/2BOt7+IB1rqnwGD+yMYR3/0Zfco9ni97O+9LLv7empqDMjoe3k2g3//EcKeS rqQWKnchXZ5JSndom23Qbuak85CO/aF8R8qX4+sMK8P/HPj2801Ey9cj3Sg7T4/10K1D wQkdB+jQWKR243a9ZoFIdyTns2tYsWM3TFE97eoC0zsREJRok6nC71+dZw5DmX3aj6cf B4l0q53gu8AlmHHdHUVyIexMTLkZsIpMigmuovfuSTi/V3voF2YMpcdVpBZX5+Vet7Z9 jNNQ== X-Gm-Message-State: AOAM530VU1FU/omwx9iKE39y154420euvOSdEfPhk92jle606WDh9iRK kNLx978v7H8R/mWqqxzhi1TyS8JXwgWy7A== X-Received: by 2002:a63:1505:: with SMTP id v5mr5021652pgl.95.1614885223540; Thu, 04 Mar 2021 11:13:43 -0800 (PST) Received: from [192.168.1.11] ([71.212.131.83]) by smtp.gmail.com with ESMTPSA id w202sm158918pff.198.2021.03.04.11.13.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 04 Mar 2021 11:13:43 -0800 (PST) Subject: Re: [PATCH 13/44] hw/misc/iotkit-sysctl: Add SSE-300 cases which match SSE-200 behaviour To: Peter Maydell , qemu-arm@nongnu.org, qemu-devel@nongnu.org References: <20210219144617.4782-1-peter.maydell@linaro.org> <20210219144617.4782-14-peter.maydell@linaro.org> From: Richard Henderson Message-ID: <3da7531f-41fd-d79d-9326-ac9f16a343ee@linaro.org> Date: Thu, 4 Mar 2021 11:13:41 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <20210219144617.4782-14-peter.maydell@linaro.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2607:f8b0:4864:20::530; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x530.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, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org Sender: "Qemu-devel" X-TUID: uYvke98WOtkN On 2/19/21 6:45 AM, Peter Maydell wrote: > The SSE-300's iokit-sysctl device is similar to the SSE-200, but > some registers have moved address or have different behaviours. > In this commit we add case statements for the registers where > the SSE-300 and SSE-200 have the same behaviour. Some registers > are the same on all SSE versions and so need no code change at all. > Putting both of these categories together covers: > > 0x0 SECDBGSTAT > 0x4 SECDBGSET > 0x8 SECDBGCLR > 0xc SCSECCTRL > 0x10 CLK_CFG0 -- this is like SSE-200 FCLK_DIV but with a > different set of clocks being controlled; our implementation > is a dummy reads-as-written anyway > 0x14 CLK_CFG1 -- similar to SSE-200 SYSCLK_DIV; our implementation > is a dummy > 0x18 CLK_FORCE -- similar to SSE-200 but different bit allocations; > we have a dummy implementation > 0x100 RESET_SYNDROME -- bit allocation differs from SSE-200 but our > implementation is a dummy > 0x104 RESET_MASK -- bit allocation differs from SSE-200 but our > implementation is a dummy > 0x108 SWRESET > 0x10c GRETREG > 0x200 PDCM_PD_SYS_SENSE -- some bit allocations differ, but our > implementation is a dummy > > We also need to migrate the state of these registers which are shared > between the SSE-200 and SSE-300, so update the vmstate 'needed' > function to do this. > > Signed-off-by: Peter Maydell > --- Reviewed-by: Richard Henderson r~