From patchwork Mon Nov 6 11:02:57 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: 741320 Delivered-To: patch@linaro.org Received: by 2002:adf:fd90:0:b0:32d:baff:b0ca with SMTP id d16csp1023521wrr; Mon, 6 Nov 2023 03:08:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IEkp0lZ03O7NyD051nRLuPvvoIzn8CaQ+LnrfOzuNvMu4OpvdLjATKVJ3AMMd8y45x+EWEY X-Received: by 2002:a05:620a:144d:b0:76d:984c:9d01 with SMTP id i13-20020a05620a144d00b0076d984c9d01mr29726843qkl.33.1699268935541; Mon, 06 Nov 2023 03:08:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699268935; cv=none; d=google.com; s=arc-20160816; b=mjKP7Pagpy+dimAZrTsqi8Qe8J2BC6k0cMxlDYvger0arKuzZ1UJjnedA72Bm/nH92 lbxZTbt97RCY2gEi8sBZIULY5aFrVvN/TOZwPjL6nQu231T/fP5m3eXSrmr2Ak3hhvS/ GBkz9ZhfkxfuPScYl/CEd4KEioGzD+7FyV6tW4oqjk88EnGSxKPniGAJlMleEJG5G7LS KSPOETWfPl15ctbkMxZw64tzDgUNJn+6VdbkYAMPy74UucghzurON2yrwb7JboHkEYZX 07alNtCbzFuPU4YPEUOCiVlN2C4d+gZXDrfge+cF8w5JFaWN0Nut5HSzuHvO5+EZc6h1 vczg== 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=QkEvU4QtX35g0CiL+rllnKg5EMCBRsMDB6Gavwvy6mM=; fh=M7LpSu7Ta78I+2rWAN95QEp5TLITKFQ2uBdD4PuAGlE=; b=JT88uGwcKFgFYcqHt7msuVHw9un7E5WJ2T1cHQLn3EniBTTM3d04CrxbnpkLKt6pAJ AOVEgUgp9ndovkmF0Xd+OpuwUTUMPJZW5qXpqtfe9ouian3MmZJYsZc9ZXRX3VayboMl YKFQdVu0URVyToYQE87/vPUjIBpNBCftVl8eIARBg9TackMUk3Rbw7ilNmStY+MF+7Zk hC8fWKd6eAcnRV0xuR1au3jOsuiap0T4Fva7NCzCjqJpAptbUnbDNw4Q5Me8HvwFg28Q Uhkpcoj4FZuhfgPGo4eDbDIcCwyU7DmPyi5OuAVVqNrzZsLj+UrlhwU/gNpQzW2zT3o3 djyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=A9kaRdSV; 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 m17-20020ae9e711000000b0076729db5823si5243667qka.240.2023.11.06.03.08.55 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 06 Nov 2023 03:08:55 -0800 (PST) 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=A9kaRdSV; 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 1qzxRu-0003ax-S1; Mon, 06 Nov 2023 06:07:18 -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 1qzxRO-00023e-0K for qemu-devel@nongnu.org; Mon, 06 Nov 2023 06:06:46 -0500 Received: from mail-ej1-x634.google.com ([2a00:1450:4864:20::634]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qzxRD-0004Uw-00 for qemu-devel@nongnu.org; Mon, 06 Nov 2023 06:06:43 -0500 Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-9c41e95efcbso623757866b.3 for ; Mon, 06 Nov 2023 03:06:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699268793; x=1699873593; 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=QkEvU4QtX35g0CiL+rllnKg5EMCBRsMDB6Gavwvy6mM=; b=A9kaRdSVWACV2BDy9cn5ts5ZnHoyOYqGTrqjjb+bpMygOwIuRvzGVPTjDvTDu8BdKm kwAY7XGhONdSMhXzgE9FjHqzIJrXnjzVPFgJL02zlExtwH49zsTaUFajrMTKIzGKyuSW y1SjYAo2mfqHNVQgs8sKITDVutEsE2oytycRdFUQtPohdk7YkKwpnLEjFpTJJpAoqa3x oWYvoc6RGQXzEtUiyWG7cqMc3HT2o5g+xARzuHROxamJsIJi8uG5rl3AL7U851xzvqwQ uoYtVpCvmRTGeAbJaIsocxWaqyHF7/VQTCBTdLd8klTIlpsFlAV8a7pCUrT0UMZ44GsN Yhyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699268793; x=1699873593; 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=QkEvU4QtX35g0CiL+rllnKg5EMCBRsMDB6Gavwvy6mM=; b=W2m312927QLrdVuHB4zx2WA2XTgfjEYVYujYMieulIopR4yHlD0SwKikqiXplBbELX AwW3VgDCAkBkkZ04gQfzoXmDcltlBXMh+lDbaYlIGRehQPYH9fMNgSm/rc7WeowCZW2i WLYvZv+FuftIrJXEf4dRnyLrXHWhgPNGTGm4fjiUthRa1hpuRDm/0WIoeBnfF8192vgg VkuYKD/PZUVUhpW6fcSQ84cVowUfSMcjtfotoaTXEvaSsdQDEl0/cAK/TTK0kNGu8QvU h0vsVBgo10sge81VJE2Mbg4nkGu2otnNnlsZWjYrSLFu6lxMmlggKH6DWDd0AxQOl9J6 QrHQ== X-Gm-Message-State: AOJu0Ywj965aaE/TzBjpw/Kd3W0i63XpEGw60k3lFXfeuIK/uTP+ICq/ lHQdTqQ674rsrhsRhmZ/GpLWyqz6PsMFOSFmZIA= X-Received: by 2002:a17:907:2ce2:b0:9be:36c2:162 with SMTP id hz2-20020a1709072ce200b009be36c20162mr13367612ejc.31.1699268793032; Mon, 06 Nov 2023 03:06:33 -0800 (PST) Received: from m1x-phil.lan (176-131-220-199.abo.bbox.fr. [176.131.220.199]) by smtp.gmail.com with ESMTPSA id iv12-20020a05600c548c00b0040641a9d49bsm11948176wmb.17.2023.11.06.03.06.31 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 06 Nov 2023 03:06:32 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: kvm@vger.kernel.org, qemu-s390x@nongnu.org, qemu-block@nongnu.org, qemu-riscv@nongnu.org, qemu-ppc@nongnu.org, qemu-arm@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Zhao Liu , Cameron Esfahani , Roman Bolshakov Subject: [PULL 25/60] target/i386/hvf: Use CPUState typedef Date: Mon, 6 Nov 2023 12:02:57 +0100 Message-ID: <20231106110336.358-26-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231106110336.358-1-philmd@linaro.org> References: <20231106110336.358-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::634; envelope-from=philmd@linaro.org; helo=mail-ej1-x634.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, T_SCC_BODY_TEXT_LINE=-0.01 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 Follow C style guidelines and use CPUState forward declaration from "qemu/typedefs.h". No functional changes. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Zhao Liu Message-Id: <20231020111136.44401-2-philmd@linaro.org> --- target/i386/hvf/x86_emu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/target/i386/hvf/x86_emu.c b/target/i386/hvf/x86_emu.c index b1f8a685d1..cd7ef30126 100644 --- a/target/i386/hvf/x86_emu.c +++ b/target/i386/hvf/x86_emu.c @@ -45,7 +45,7 @@ #include "vmcs.h" #include "vmx.h" -void hvf_handle_io(struct CPUState *cpu, uint16_t port, void *data, +void hvf_handle_io(CPUState *cpu, uint16_t port, void *data, int direction, int size, uint32_t count); #define EXEC_2OP_FLAGS_CMD(env, decode, cmd, FLAGS_FUNC, save_res) \ @@ -1417,7 +1417,7 @@ static void init_cmd_handler() } } -void load_regs(struct CPUState *cpu) +void load_regs(CPUState *cpu) { X86CPU *x86_cpu = X86_CPU(cpu); CPUX86State *env = &x86_cpu->env; @@ -1440,7 +1440,7 @@ void load_regs(struct CPUState *cpu) env->eip = rreg(cpu->accel->fd, HV_X86_RIP); } -void store_regs(struct CPUState *cpu) +void store_regs(CPUState *cpu) { X86CPU *x86_cpu = X86_CPU(cpu); CPUX86State *env = &x86_cpu->env;