Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1pHmqP-0005iB-BY for mharc-qemu-riscv@gnu.org; Tue, 17 Jan 2023 09:21:45 -0500 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 1pHmqN-0005hd-GN for qemu-riscv@nongnu.org; Tue, 17 Jan 2023 09:21:43 -0500 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 1pHmqL-00029v-IS for qemu-riscv@nongnu.org; Tue, 17 Jan 2023 09:21:42 -0500 Received: by mail-wm1-x32d.google.com with SMTP id m15so1172787wms.4 for ; Tue, 17 Jan 2023 06:21:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=zun9R1HnhsYpIBEgRGSUZTaf8sxjD8dhuMNZisat7OE=; b=izHMtbuWbUucEUuHTTlFDItCol7+bADhZ8vPpw+vOs3DapJ8eG6INbA16ISgsOKgCW 8lWRjrp6+IBf8DkSUuB1kgMqGvdwadXzGHzFaAOgrVNBqdJwgh3+wEZWKI7u2lyAKJb0 fEJ4fY2sRWLw6X/wH9epcCUqZneGbDCGWsOdUU6ZPoxANZvCBwiMRBdbMptPZTERBs3J swOeLd0sOBdDSCDqn8sYCFfqia665gypxQL9CpBnf0dDvm/+bbYzW3Fqz5iQjtizT7g2 DuNhgS53jotsEq3e1cog8/JUA152Ve1jCyBGQucQ3diz9h4d6Ixe7P7SOW4lk6KrI45l JLvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=zun9R1HnhsYpIBEgRGSUZTaf8sxjD8dhuMNZisat7OE=; b=ZaX2WAFrmWvP8Y02KdAIiK1SHcX2D3m6yZ55uh1hveQ7FVurJC51R/zXxCIe9hRuC8 nQXNGyeutAkHCMbw2mwmsjgpUELk+pjIW6Erm3nMAv0xDXwI0fRw4aDInEik8UtRFusw 7owy4d4bdYYnxDPe29KkWdDMDEbeE5+AIejKXPz2z0N3UnaU0S9l7ibh/bRhIaUZsQ7m w7Fp6iu6v6jvK7PauPFdsjPZnpMNJoOa5qPierI7mjAvJaGTmMbKx65naqeYgH4QU2fR zbK6n4IjcmbCJQC1brhRRb8rSHoYJXRMdM1vPqkQLqLbuzifmyQ293hruErd9J5+AxYp EAEw== X-Gm-Message-State: AFqh2kq5EC3rhouAnL7kaqEVRC5Mar9eKHTvdCpgkT4bEKeexYDJYUIj S9GccOsMDIqSvOBfGR6dsnjGuQ== X-Google-Smtp-Source: AMrXdXuqMMdgEqpTq0Kqpst9s4vegKgZPQtwgIb+WdRlWyAn+Bj0fQOyi4fE5wuBq+qS/Lx0mHC7zw== X-Received: by 2002:a05:600c:4a27:b0:3db:3ef:2369 with SMTP id c39-20020a05600c4a2700b003db03ef2369mr3755143wmp.40.1673965299712; Tue, 17 Jan 2023 06:21:39 -0800 (PST) Received: from localhost (2001-1ae9-1c2-4c00-20f-c6b4-1e57-7965.ip6.tmcz.cz. [2001:1ae9:1c2:4c00:20f:c6b4:1e57:7965]) by smtp.gmail.com with ESMTPSA id j20-20020a05600c1c1400b003daf89e01d3sm8505849wms.11.2023.01.17.06.21.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Jan 2023 06:21:39 -0800 (PST) Date: Tue, 17 Jan 2023 15:21:38 +0100 From: Andrew Jones To: Alexandre Ghiti Cc: Palmer Dabbelt , Alistair Francis , Bin Meng , Frank Chang , qemu-riscv@nongnu.org, qemu-devel@nongnu.org Subject: Re: [PATCH v5 1/2] riscv: Pass Object to register_cpu_props instead of DeviceState Message-ID: <20230117142138.j2cv2lzvppiuzpne@orel> References: <20230113103453.42776-1-alexghiti@rivosinc.com> <20230113103453.42776-2-alexghiti@rivosinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230113103453.42776-2-alexghiti@rivosinc.com> Received-SPF: pass client-ip=2a00:1450:4864:20::32d; envelope-from=ajones@ventanamicro.com; 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=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-riscv@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Jan 2023 14:21:43 -0000 On Fri, Jan 13, 2023 at 11:34:52AM +0100, Alexandre Ghiti wrote: > One can extract the DeviceState pointer from the Object pointer, so pass > the Object for future commits to access other fields of Object. > > No functional changes intended. > > Signed-off-by: Alexandre Ghiti > --- > target/riscv/cpu.c | 15 ++++++++------- > 1 file changed, 8 insertions(+), 7 deletions(-) > Reviewed-by: Andrew Jones