From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B7C3EE9371D for ; Mon, 9 Oct 2023 22:26:00 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qpyh6-0007e3-TL; Mon, 09 Oct 2023 18:25:44 -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 1qpyTd-0003qo-UQ for qemu-riscv@nongnu.org; Mon, 09 Oct 2023 18:11:49 -0400 Received: from mail-lf1-x135.google.com ([2a00:1450:4864:20::135]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qpyTZ-0001mi-IZ for qemu-riscv@nongnu.org; Mon, 09 Oct 2023 18:11:49 -0400 Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-503397ee920so6276009e87.1 for ; Mon, 09 Oct 2023 15:11:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=roolebo.dev; s=mail; t=1696889503; x=1697494303; darn=nongnu.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=nJy0hce/YrY23lL4GVCRdbFPgnpYuOHyHRvZoD67NIs=; b=Qp+JFLxd31Zbcwwv0scwQzvZVl6DRYKk0rFcRmpYhOEphGCbpWGm/2V6jRnkaPelLd YM5xDAgmSsevpuK1CZVDdI1DOLuBxTL4Fp/kDYVbtm3u1vVRTvfKwR9Tx9uKRVRJmQtE Ge35mMpUC9MKTil1N85QR8XNOgyBkIi3e4suoOzU8+05ZYnRw5Dnx15nCWi6WGO2EFTq WcAuLFELR5o642HIIXOU1Hch+1pf/RrspXotELwu6K3rlGOHY4P2gzjScDFDcJfTWdGo an6agRozInWRA8ocI/DnLsS2I3hDk0CAZZTeOzg9LMuTa9+LbZskFxwlhvJ0gBduFYxn rotg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696889503; x=1697494303; h=in-reply-to:content-transfer-encoding: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=nJy0hce/YrY23lL4GVCRdbFPgnpYuOHyHRvZoD67NIs=; b=nGx+aoMepTRf97AgTcomW/893rnvA7ESuW14UpiCfQnS6bBstaMzgdW2LF41cFOsdq AB3Ecx5BppQqmbQGh3OUKT7oQQyqvk1IUrafvKahkQR4HXyyYWkokqlFCM5wX1Vy2d1O 4cm9kRKWV22Q4NhagOfT9878tRG7luvlI/V2iIRkpY6Fa5+ehFf3S8XKCSml0o1orcNX bN4zdfOnqFrk3SNpsR5khw0npeZJHU1iupNCRJuozS14qI1EaGout/dTNnNJUxFqGIm2 OJCGk0JwXiCz8T0gzqjK1ZD4gXkwH5J8vTtsELn7petjsax+qCB2xtPcyu70lU8B5uMV bexw== X-Gm-Message-State: AOJu0YwHQNhTNZSG0kNKXgkUI1+WNa+8BNwiw4d912oPC/XTguD7uWXR Lh7jDr+3/yFpjvSj5eJiPxQJjg== X-Google-Smtp-Source: AGHT+IEQZJ6+hZs6o+jHiOoe2HZ60A/G1wZUI4gX36JdY+mej1GgSheBuqpnr1bggyP0p8HRwIvWqQ== X-Received: by 2002:a05:6512:250c:b0:503:1b83:e352 with SMTP id be12-20020a056512250c00b005031b83e352mr17216392lfb.52.1696889503024; Mon, 09 Oct 2023 15:11:43 -0700 (PDT) Received: from localhost (95-25-87-177.broadband.corbina.ru. [95.25.87.177]) by smtp.gmail.com with ESMTPSA id m23-20020ac24257000000b0050420eff124sm1553302lfl.152.2023.10.09.15.11.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 15:11:42 -0700 (PDT) Date: Tue, 10 Oct 2023 01:11:41 +0300 From: Roman Bolshakov To: Philippe =?iso-8859-1?Q?Mathieu-Daud=E9?= Cc: qemu-devel@nongnu.org, David Hildenbrand , Weiwei Li , qemu-s390x@nongnu.org, Ilya Leoshkevich , Bin Meng , Alistair Francis , Cameron Esfahani , qemu-ppc@nongnu.org, Daniel Henrique Barboza , qemu-riscv@nongnu.org, Max Filippov , Daniel Henrique Barboza , Palmer Dabbelt , =?iso-8859-1?Q?C=E9dric?= Le Goater , Liu Zhiwei , Richard Henderson , Thomas Huth , Roman Bolshakov , Nicholas Piggin Subject: Re: [PATCH 5/6] target/i386/hvf: Use x86_cpu in simulate_[rdmsr|wrmsr]() Message-ID: References: <20231009110239.66778-1-philmd@linaro.org> <20231009110239.66778-6-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231009110239.66778-6-philmd@linaro.org> Received-SPF: none client-ip=2a00:1450:4864:20::135; envelope-from=roman@roolebo.dev; helo=mail-lf1-x135.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_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 09 Oct 2023 18:25:44 -0400 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: , Errors-To: qemu-riscv-bounces+qemu-riscv=archiver.kernel.org@nongnu.org Sender: qemu-riscv-bounces+qemu-riscv=archiver.kernel.org@nongnu.org On Mon, Oct 09, 2023 at 01:02:38PM +0200, Philippe Mathieu-Daudé wrote: > We already have 'x86_cpu = X86_CPU(cpu)'. Use the variable > instead of doing another QOM cast with X86_CPU(). > > Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Roman Bolshakov -- Regards, Roman