From nobody Wed Nov 27 17:32:08 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1697254640; cv=none; d=zohomail.com; s=zohoarc; b=KN262MpDxdcGXHNVQp0aqkBTaYbYbjCOyZhjxkw1m7mWVHY7q6Rz084J1KG7A2xHzepHElZJE/JmOQPyM3L0S4EEscxd89ZCEFfyRwg+HXJxrIZhMNKmemOWP/VkmoNbxJpF+sUKcUWBaXa4y94zkXNLQXHuSgkoazBy9qgcgdU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1697254640; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:Message-Id:Reply-To:To; bh=2WfcBcURCpBzkq/OT9x9ciFFH2S7/N+xn+Vd6QWcFlg=; b=f8HBuSOnSciHkrmpv3D0ixM54Vrark5HMzHXIsPkHfFa1p9CAhSfmDt9yvarCvtyidfiFSQhkTiQTXPEQ8yJRyW61wz0+OcxgU2jkhQk4j7XoQegPX1Ya85jKkh1eyWTcl+YxpDbxu86n8NSJXmZw2/aB5PejmVFzNw7fWWOzV8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1697254640727721.3471980609588; Fri, 13 Oct 2023 20:37:20 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qrVRx-0007aH-Aw; Fri, 13 Oct 2023 23:36:26 -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 1qrVRt-0007Za-RH for qemu-devel@nongnu.org; Fri, 13 Oct 2023 23:36:22 -0400 Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qrVRr-00044U-Oj for qemu-devel@nongnu.org; Fri, 13 Oct 2023 23:36:21 -0400 Received: by mail-pl1-x633.google.com with SMTP id d9443c01a7336-1c5c91bec75so20962465ad.3 for ; Fri, 13 Oct 2023 20:36:19 -0700 (PDT) Received: from localhost ([2400:4050:a840:1e00:78d2:b862:10a7:d486]) by smtp.gmail.com with UTF8SMTPSA id b6-20020a170902ed0600b001c0cb2aa2easm4563161pld.121.2023.10.13.20.36.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 13 Oct 2023 20:36:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20230601.gappssmtp.com; s=20230601; t=1697254578; x=1697859378; 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=2WfcBcURCpBzkq/OT9x9ciFFH2S7/N+xn+Vd6QWcFlg=; b=s94NspDM6fSidEmi1V7Nhx4DPCiN9F10w5a2FSWfwr9aP4IJ+ssgjpqYmfxELpauMV F4hI33UuR665/lLAIh/mxbTEECOjOOEBqayxChN3HYthOMkBf2LueyKvmza9UWbJH7yK bvEjzwy0f4iLYbLvjbdRpdxbPFM+gne6F+cNE0cf0eFIwWCk/rWMv/UnOPnMQi7TVgkg fiYfTCtjT9bLu4xRZvZ4h6xQ4anq3tAgQfAJ43gi4+hyzEhvnNhSqUf2F5bsHXGEVeaR b/gzGT4Mb7Avt/S2R2820k3fOhVO79PZKs81Wmz5wjmpoUH3tLNG1jpGz/crNUyDBgc2 HBbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697254578; x=1697859378; 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=2WfcBcURCpBzkq/OT9x9ciFFH2S7/N+xn+Vd6QWcFlg=; b=ZDEBFjE9st82uP+/DsKP27/y1u7Ra8RNCStLgI1InU+GaqN0137LtTxa0vfxRr+Ioy OcCTBX7074C6nozKkWcL2AzPJtv7UQpQt873IXzhjezylS6vYSbswk+ha6ldsyiQpBHH PPDoQ73vWyRoqncYV568biW//EhB7VEEdpnTVVPh8jZqQpfc6Q5hU5OVe0Isu8ZuEsOy QJS2SxgBwNMcBm0XrJqk1RWbTrkRqZ1ID+lZe1S7rwTrtFDJkw2uPl4wzQuXHIiXMXBP BjDlkIM65CDqayLABne2krSXL9xWG4dRTKHH9dJ9zKt13ED/Ty5bABWYK8b1KwC/o/Ix RUgQ== X-Gm-Message-State: AOJu0Yw1e9jiZKHM3z/z+t+xpt3DWA8a541VngR7rjFhofzBJY1tDoAf gMGNqfDyRjqK1eFA7++Nmz2yPA== X-Google-Smtp-Source: AGHT+IGZja6UbuTxM4GCw+iPGvxne5NJyUEYG7T/oYRFLDXvBAnDVXFow4akLsJGqhYRZ92bmmoerQ== X-Received: by 2002:a17:903:230b:b0:1c7:3558:721a with SMTP id d11-20020a170903230b00b001c73558721amr35214656plh.58.1697254578174; Fri, 13 Oct 2023 20:36:18 -0700 (PDT) From: Akihiko Odaki To: Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , Mikhail Tyutin , Aleksandr Anenkov , qemu-devel@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Akihiko Odaki , Palmer Dabbelt , Alistair Francis , Bin Meng , Weiwei Li , Daniel Henrique Barboza , Liu Zhiwei , qemu-riscv@nongnu.org (open list:RISC-V TCG CPUs) Subject: [PATCH v2 1/3] target/riscv: Do not allow MXL_RV32 for TARGET_RISCV64 Date: Sat, 14 Oct 2023 12:35:39 +0900 Message-ID: <20231014033545.15220-2-akihiko.odaki@daynix.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231014033545.15220-1-akihiko.odaki@daynix.com> References: <20231014033545.15220-1-akihiko.odaki@daynix.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: none client-ip=2607:f8b0:4864:20::633; envelope-from=akihiko.odaki@daynix.com; helo=mail-pl1-x633.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @daynix-com.20230601.gappssmtp.com) X-ZM-MESSAGEID: 1697254642402100001 Content-Type: text/plain; charset="utf-8" TARGET_RISCV64 does not have riscv-32bit-cpu.xml so it shouldn't accept MXL_RV32. Signed-off-by: Akihiko Odaki Reviewed-by: Daniel Henrique Barboza --- target/riscv/tcg/tcg-cpu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/target/riscv/tcg/tcg-cpu.c b/target/riscv/tcg/tcg-cpu.c index a28918ab30..e0cbc56320 100644 --- a/target/riscv/tcg/tcg-cpu.c +++ b/target/riscv/tcg/tcg-cpu.c @@ -161,10 +161,11 @@ static void riscv_cpu_validate_misa_mxl(RISCVCPU *cpu= , Error **errp) case MXL_RV128: cc->gdb_core_xml_file =3D "riscv-64bit-cpu.xml"; break; -#endif +#elif defined(TARGET_RISCV32) case MXL_RV32: cc->gdb_core_xml_file =3D "riscv-32bit-cpu.xml"; break; +#endif default: g_assert_not_reached(); } --=20 2.42.0 From nobody Wed Nov 27 17:32:08 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1697254641; cv=none; d=zohomail.com; s=zohoarc; b=IFV9VtqqgkK4y6iw70MItQ1IwhnVJyb0xdTvAzTfghYJQTBn88n6aqr/nWYheKKr9dAQ7N4RKS1maiMJ+TGIAalQrj9be+uHMTyEi3q3saOhAlIdSqOFpnKhimyxYxH8JF58rfPhviu6pwisJmG7m2YZvdQ7zITZ172fQ+tIiGs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1697254641; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:Message-Id:Reply-To:To; bh=IKk6IyCieLsIGaxm0GofI4QujL1p3Wha0xoTTyMZRjs=; b=aiqYxjJJyzAxj79+81yUIDsXOt+Ly7HHGqoN+3QSSV/dB8dsTcvAz85PL0b00roXbAmXz82gXIMhfEurp9s1d0t60KBqRUwSVg+TtEpLQAu8/x0WmjR9EHGwbnlLMph5zV0FY52wEp120qDmCmMbLKgWKR+7KBccl44Q4akAUmk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1697254641237537.6613519407855; Fri, 13 Oct 2023 20:37:21 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qrVS4-0007av-A1; Fri, 13 Oct 2023 23:36:32 -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 1qrVRy-0007aK-8T for qemu-devel@nongnu.org; Fri, 13 Oct 2023 23:36:26 -0400 Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qrVRw-00044q-OH for qemu-devel@nongnu.org; Fri, 13 Oct 2023 23:36:26 -0400 Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-6b20a48522fso1154723b3a.1 for ; Fri, 13 Oct 2023 20:36:24 -0700 (PDT) Received: from localhost ([2400:4050:a840:1e00:78d2:b862:10a7:d486]) by smtp.gmail.com with UTF8SMTPSA id l21-20020a170902d35500b001c737950e4dsm4601654plk.2.2023.10.13.20.36.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 13 Oct 2023 20:36:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20230601.gappssmtp.com; s=20230601; t=1697254583; x=1697859383; 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=IKk6IyCieLsIGaxm0GofI4QujL1p3Wha0xoTTyMZRjs=; b=S3JU9aqi8B+CWnlj9Xp4LSAIConG41LXB8rBhZvwWNFccQvFtRfjn+IXZZhCDsOftc +4w2C8NC6F5dbZZLs/KxITFlXb9xdERaXN0YPhsCsassWEP68DEQV4HnDDGfmaHJ0WFu Ht9OXCMEZ4bxATx3tU7NvgUynslNrG5EVFlMGKo+4NvPfhDDS0/UgyaaWy9E5nExMTFl cNYo6W0ylwjYFCL45RL4VrCsJa4CamqLsc7UsuhtFrGNfZeBQm+e8IK0jzAmoXRZrsCi ZwnnyZDFOE33EFpZeoJuLA9jsOb7A9elzseIQJnZDWqVUsNQu0awCbII6cbJSq5m6aLJ rlOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697254583; x=1697859383; 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=IKk6IyCieLsIGaxm0GofI4QujL1p3Wha0xoTTyMZRjs=; b=ShZypBd0cFpKPIO4Ncv4CYe8mVtSNfXeYgI+jo7wvf27/XwDioiWecIyhvDMxI2v5W jEeGx1PUGvFx4KOSTsOcbWj6xc1LfoE3QlKs+hxN3uqE+zVG5rz8Ve/CrLFMaaJNDubf IgmVH6pCb4ShfqpDs1dQNsJCrhwCyj3wR4TXVL+7eqHILOOzgOKNRpcrOcn5MF8X5Gbj 67gV0jVI626Ve+ouJ8Gt4pTSJpxf0IRjXMZrGQh/rCE40RNKWOOvF0fw4bRhb3lrtMvj gEYulm6yoe9/1cL2jE18wnTmqYPKWwsRxN3ZDSkgNmd2OCIeASom6mDpGsK4ZFaoaOIC DaCA== X-Gm-Message-State: AOJu0YwpUVoSnJf8IwpsvCawEL9s759aBtF794IUAnowk+F6s344ozYf 7xfJP70mKr80Hh4ZezTGww/KkQ== X-Google-Smtp-Source: AGHT+IGE61g7j9rf1ckqZDbfdbd8sEpDTdz9DpEPY/D7IQBYuj2OzqPAzvMJ5uJ1CDdeLTxMjdLIuA== X-Received: by 2002:a05:6a20:3d17:b0:157:54fd:5c26 with SMTP id y23-20020a056a203d1700b0015754fd5c26mr32198915pzi.38.1697254583135; Fri, 13 Oct 2023 20:36:23 -0700 (PDT) From: Akihiko Odaki To: Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , Mikhail Tyutin , Aleksandr Anenkov , qemu-devel@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Akihiko Odaki , Palmer Dabbelt , Alistair Francis , Bin Meng , Weiwei Li , Daniel Henrique Barboza , Liu Zhiwei , qemu-riscv@nongnu.org (open list:RISC-V TCG CPUs) Subject: [PATCH v2 2/3] target/riscv: Initialize gdb_core_xml_file only once Date: Sat, 14 Oct 2023 12:35:40 +0900 Message-ID: <20231014033545.15220-3-akihiko.odaki@daynix.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231014033545.15220-1-akihiko.odaki@daynix.com> References: <20231014033545.15220-1-akihiko.odaki@daynix.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: none client-ip=2607:f8b0:4864:20::42b; envelope-from=akihiko.odaki@daynix.com; helo=mail-pf1-x42b.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @daynix-com.20230601.gappssmtp.com) X-ZM-MESSAGEID: 1697254642409100002 Content-Type: text/plain; charset="utf-8" gdb_core_xml_file was assigned each time a CPU is instantiated before this change. Signed-off-by: Akihiko Odaki --- target/riscv/cpu.c | 5 +++++ target/riscv/tcg/tcg-cpu.c | 4 ---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c index ac4a6c7eec..a811215150 100644 --- a/target/riscv/cpu.c +++ b/target/riscv/cpu.c @@ -1575,6 +1575,11 @@ static void riscv_cpu_class_init(ObjectClass *c, voi= d *data) cc->get_pc =3D riscv_cpu_get_pc; cc->gdb_read_register =3D riscv_cpu_gdb_read_register; cc->gdb_write_register =3D riscv_cpu_gdb_write_register; +#ifdef TARGET_RISCV64 + cc->gdb_core_xml_file =3D "riscv-64bit-cpu.xml"; +#elif defined(TARGET_RISCV32) + cc->gdb_core_xml_file =3D "riscv-32bit-cpu.xml"; +#endif cc->gdb_num_core_regs =3D 33; cc->gdb_stop_before_watchpoint =3D true; cc->disas_set_info =3D riscv_cpu_disas_set_info; diff --git a/target/riscv/tcg/tcg-cpu.c b/target/riscv/tcg/tcg-cpu.c index e0cbc56320..626fb2acea 100644 --- a/target/riscv/tcg/tcg-cpu.c +++ b/target/riscv/tcg/tcg-cpu.c @@ -150,8 +150,6 @@ static void riscv_cpu_validate_misa_priv(CPURISCVState = *env, Error **errp) =20 static void riscv_cpu_validate_misa_mxl(RISCVCPU *cpu, Error **errp) { - RISCVCPUClass *mcc =3D RISCV_CPU_GET_CLASS(cpu); - CPUClass *cc =3D CPU_CLASS(mcc); CPURISCVState *env =3D &cpu->env; =20 /* Validate that MISA_MXL is set properly. */ @@ -159,11 +157,9 @@ static void riscv_cpu_validate_misa_mxl(RISCVCPU *cpu,= Error **errp) #ifdef TARGET_RISCV64 case MXL_RV64: case MXL_RV128: - cc->gdb_core_xml_file =3D "riscv-64bit-cpu.xml"; break; #elif defined(TARGET_RISCV32) case MXL_RV32: - cc->gdb_core_xml_file =3D "riscv-32bit-cpu.xml"; break; #endif default: --=20 2.42.0 From nobody Wed Nov 27 17:32:08 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1697254655; cv=none; d=zohomail.com; s=zohoarc; b=nWmp0nsZv+dHV9DHKTSZHxFP0jmqpucUY/2D4j4tzfNvbUlYMYs0FdSzPlAfe+nnajSrB1WPe+7SwLVx9FftMuc18UW/veGKOUdFbBRVk056xqN6NS0ynk5fJTIp2/qVAvFcjvSaH/R6Up4tkTvfng2fGq78S5L77DvaPforvNQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1697254655; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:Message-Id:Reply-To:To; bh=PVVhU7FVBGv/xT5QVrpV2Z6/BYaCzW+7Ey07YWq/aa8=; b=Tw1+MXdre0BZvffrBpkSi6T+GjPrh5sQmZwGhubOBAe8mlyMy9iKHwC1x4pB8BhlFUi01zHUDzcnaHlGNzTVsbtNVo7NMh8gN2q41xpKEJYznMZZvjsYdedpQRPV7QZQteH1MR+9gdqZrKkriLUMzenkTGq7Vd+u5YMOsTl4QiQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1697254655919498.1249795095838; Fri, 13 Oct 2023 20:37:35 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qrVS6-0007bl-GF; Fri, 13 Oct 2023 23:36:34 -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 1qrVS2-0007b0-98 for qemu-devel@nongnu.org; Fri, 13 Oct 2023 23:36:31 -0400 Received: from mail-pg1-x530.google.com ([2607:f8b0:4864:20::530]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qrVS0-00045A-Ru for qemu-devel@nongnu.org; Fri, 13 Oct 2023 23:36:30 -0400 Received: by mail-pg1-x530.google.com with SMTP id 41be03b00d2f7-58e119bb28eso3010594a12.1 for ; Fri, 13 Oct 2023 20:36:28 -0700 (PDT) Received: from localhost ([2400:4050:a840:1e00:78d2:b862:10a7:d486]) by smtp.gmail.com with UTF8SMTPSA id l5-20020a17090ad10500b0027b436159afsm796077pju.40.2023.10.13.20.36.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 13 Oct 2023 20:36:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20230601.gappssmtp.com; s=20230601; t=1697254587; x=1697859387; 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=PVVhU7FVBGv/xT5QVrpV2Z6/BYaCzW+7Ey07YWq/aa8=; b=2u5zZzb8rW5NBD8zNkIgh20iajxbQjz0zlEo8j3U++Itwdrl7Cxx649k5Pz5V5fm/m Rfs7hhPggfPncQ1aLKxjAIEDR0m3dmiarJyeLXrCLgvlWYubf+/gkzkjjKRb8eC21URE QoRZgqng6NRdGTt2fmfRKdLdkIQEJ2V/F6GKIbv8I07eiI97ny/1XtxAyD8iAmEqjCmR WMJxEf7EXbzI8ZQQEiZHaR+ADEk5BhxxYjt0M7I4DPTSfMEI5EMWEetyIFLtM9GHVgER T1kPpYoXrWQDdPdidX08vCmAFf4AHhzHEcQI61yJMXirQyFUGf2LtotGGJBKFzQSAnPX KiEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697254587; x=1697859387; 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=PVVhU7FVBGv/xT5QVrpV2Z6/BYaCzW+7Ey07YWq/aa8=; b=Z7akoVOTY8M45Pofy8XMWA53ZKfnWzWwmeBw5Vs6WECoyG/ZhFYdwpsfBg6AIBOz+d i5fmW17mnZxJe5uSkRNAznE0Rs8RbOwPuk1fXh8ANn2ZQMwHans9Ux0uyPg3vB/S6ip5 MC8Xym2EP0paJZiq9NEs9m+hLeyF/kcpr2qRvXTGyKzVv1bSd3brk6S3Uc5CaOssFOsd Rl8j9SeQ7lB80i3rSSfZHSBmYz8PSy00oU7Wsw5qhT7YtUczm7jbQAE2DJTBdK8OBxKm mFkQ34y0YhSocZgbSPTeTRkjwNI/D91pa1yhkBJpESxNJV37DomWvgcsqldxAoKtxFeB 8zaQ== X-Gm-Message-State: AOJu0YysjLPR/XNDmIwRjEB5rT7yH3LZI6dl709DHHveJSIJo16Zrfx/ 5yZK2Ji1Zv82eWMrRsCHCB8ZFA== X-Google-Smtp-Source: AGHT+IHNieiowgvn07Aw6voEv632Vr1ECyoTfAD1W6BI5o9VKNaOnUg3FpBKjfrKV1Vf5y+L1dxpaA== X-Received: by 2002:a17:90a:8a18:b0:27d:c5b:747c with SMTP id w24-20020a17090a8a1800b0027d0c5b747cmr2822186pjn.2.1697254587370; Fri, 13 Oct 2023 20:36:27 -0700 (PDT) From: Akihiko Odaki To: Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , Mikhail Tyutin , Aleksandr Anenkov , qemu-devel@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Akihiko Odaki , Richard Henderson , Paolo Bonzini Subject: [PATCH v2 3/3] plugins: Remove an extra parameter Date: Sat, 14 Oct 2023 12:35:41 +0900 Message-ID: <20231014033545.15220-4-akihiko.odaki@daynix.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231014033545.15220-1-akihiko.odaki@daynix.com> References: <20231014033545.15220-1-akihiko.odaki@daynix.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: none client-ip=2607:f8b0:4864:20::530; envelope-from=akihiko.odaki@daynix.com; helo=mail-pg1-x530.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-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-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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @daynix-com.20230601.gappssmtp.com) X-ZM-MESSAGEID: 1697254658122100003 Content-Type: text/plain; charset="utf-8" copy_call() has an unused parameter so remove it. Signed-off-by: Akihiko Odaki --- accel/tcg/plugin-gen.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/accel/tcg/plugin-gen.c b/accel/tcg/plugin-gen.c index 39b3c9351f..78b331b251 100644 --- a/accel/tcg/plugin-gen.c +++ b/accel/tcg/plugin-gen.c @@ -327,8 +327,7 @@ static TCGOp *copy_st_ptr(TCGOp **begin_op, TCGOp *op) return op; } =20 -static TCGOp *copy_call(TCGOp **begin_op, TCGOp *op, void *empty_func, - void *func, int *cb_idx) +static TCGOp *copy_call(TCGOp **begin_op, TCGOp *op, void *func, int *cb_i= dx) { TCGOp *old_op; int func_idx; @@ -372,8 +371,7 @@ static TCGOp *append_udata_cb(const struct qemu_plugin_= dyn_cb *cb, } =20 /* call */ - op =3D copy_call(&begin_op, op, HELPER(plugin_vcpu_udata_cb), - cb->f.vcpu_udata, cb_idx); + op =3D copy_call(&begin_op, op, cb->f.vcpu_udata, cb_idx); =20 return op; } @@ -420,8 +418,7 @@ static TCGOp *append_mem_cb(const struct qemu_plugin_dy= n_cb *cb, =20 if (type =3D=3D PLUGIN_GEN_CB_MEM) { /* call */ - op =3D copy_call(&begin_op, op, HELPER(plugin_vcpu_mem_cb), - cb->f.vcpu_udata, cb_idx); + op =3D copy_call(&begin_op, op, cb->f.vcpu_udata, cb_idx); } =20 return op; --=20 2.42.0