From nobody Sat May 18 05:05:01 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; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1683304568; cv=none; d=zohomail.com; s=zohoarc; b=mixgRlVs54t7NwFt8vkFbjvC3tT0Gq/pV8dclw91u/LdUMqS9nqyC3JwINkdlR7tVp0xUM5Vj0mvilaapAWGwWA+O5AAk8Tn/y49TphkmeaAzpI6hFoyZYoTtjD6WLwWmj14xZh9zqgAXgzn/QqlWjWKckdY4ghQPfbELtlzQ/g= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1683304568; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=MCjxT1AnvWCkgvpc+O4OKxD9lGcf/L6QT+VZL3/jXbc=; b=dtpLw/29hwyD8GHU5VF96le61rYT/N42z23gNef//v2F9KHqCidyK0NGCX6RxhoTBtywAc+i4bpPy3s5wN5TakHZUzXTfoPanhg90X3Bxcew94iswcUXBmhFUmCVYRj8iiDGMMF9MsoYOrGknkYrKJiPnISu3Cz4fs/vK5xM8L0= 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; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1683304568338351.94039520361866; Fri, 5 May 2023 09:36:08 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1puyOb-0000Tg-57; Fri, 05 May 2023 12:35:01 -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 1puyOZ-0000TQ-MF; Fri, 05 May 2023 12:34:59 -0400 Received: from mail-ot1-x32b.google.com ([2607:f8b0:4864:20::32b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1puyOY-0004sl-5v; Fri, 05 May 2023 12:34:59 -0400 Received: by mail-ot1-x32b.google.com with SMTP id 46e09a7af769-6a5f21a231eso1238577a34.1; Fri, 05 May 2023 09:34:54 -0700 (PDT) Received: from grind.. (189-46-207-53.dsl.telesp.net.br. [189.46.207.53]) by smtp.gmail.com with ESMTPSA id z3-20020a9d62c3000000b006a43519523fsm1033475otk.1.2023.05.05.09.34.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 May 2023 09:34:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683304493; x=1685896493; 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=MCjxT1AnvWCkgvpc+O4OKxD9lGcf/L6QT+VZL3/jXbc=; b=DykmxVZbdtHOs4Dzlm/skWg18STcCibki2Pj9HW/GpmrKZTfnDJtO227U++NLkylsr nqoU54DcTwERmQXMN/u5I1et27HR5YWLXGVZ76zih6UHLc9oszCBVJ4cp9eB80rUtmz+ EIU6wRPFuuWVt6a3a4bhKYWrF0EDRIQU9SbgA6PAc5KNLrvHDPENZ9Xqo7Nz8GIxkKww 9Vv1ZVWSVVtB3crrrP++0pHEO0U1Zmo0fr+NC5X2Wj3KstWdJ1jV/hiyIuhGrFkF9GwS giGtL7ziXEAFW6A5itOOG8Gp2gnc/DbPTEnIHmVvWUJr3smVTbbSj7SspGeLkwWIcyv9 Xx7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683304493; x=1685896493; 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=MCjxT1AnvWCkgvpc+O4OKxD9lGcf/L6QT+VZL3/jXbc=; b=WKH/Iem6DKydvgbVpur3jPePzs8STCun5TEoo3VyXVUzUWeVBfvEudnvyhcVS9C5te 8OJLGwQUsOrSHun5BiQcTMQqVvR+bvWyLd6wSBtGBlVXfSnXqAbITlDWIBj6bhKezvs+ 3BUHvfnTjNLasMq53p/3/CCupQRI7UYBnbpdZhSZ3c4OXmftT8xXKQhPuRB/FZt3DGeu uo2JGEFhXWDz9Y+lFyosS5Cc/qd7qYNEhwIIzBrvFcPOGRFXkBoXdIpzazqoiIMBHNmk 8Pa6zlLL+HQxASeqKobqE2MH2MLv5Wgc3hZpCqFexnBIzxIDy809R80B3/gx+giIqpOD dTSg== X-Gm-Message-State: AC+VfDy539s7hD4GlxZMiSzKVkv/b2B9RF455Sf3nJSoA2K7/Y1CaRSR xfzXCtKrypJRjZf0ywyLlb2wOWtq/Tw= X-Google-Smtp-Source: ACHHUZ4J4Ji2dVXTmswBpoA+Ghn36cDkZpiyVLhxkatBhoLAgNV6N4NDm22WYCHuSE6PzT7AHE4t3w== X-Received: by 2002:a05:6830:104b:b0:6a6:3a73:95e with SMTP id b11-20020a056830104b00b006a63a73095emr999774otp.35.1683304493161; Fri, 05 May 2023 09:34:53 -0700 (PDT) From: Daniel Henrique Barboza To: qemu-devel@nongnu.org Cc: qemu-ppc@nongnu.org, danielhb413@gmail.com, peter.maydell@linaro.org, BALATON Zoltan , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PULL 1/6] hw/display/sm501: Remove unneeded increment from loop Date: Fri, 5 May 2023 13:34:39 -0300 Message-Id: <20230505163444.347006-2-danielhb413@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230505163444.347006-1-danielhb413@gmail.com> References: <20230505163444.347006-1-danielhb413@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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: pass client-ip=2607:f8b0:4864:20::32b; envelope-from=danielhb413@gmail.com; helo=mail-ot1-x32b.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, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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 @gmail.com) X-ZM-MESSAGEID: 1683304569627100001 From: BALATON Zoltan As Coverity points out (CID 1508621) the calculation to increment i in the fill fallback loop is ineffective as it is overwritten in next statement. This was left there by mistake from a previous version but is not needed in the current approach so remove the superfluous increment statement. Reported-by: Peter Maydell Signed-off-by: BALATON Zoltan Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-Id: <20230405161234.6EF0A74633D@zero.eik.bme.hu> Signed-off-by: Daniel Henrique Barboza --- hw/display/sm501.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/display/sm501.c b/hw/display/sm501.c index dbabbc4339..0eecd00701 100644 --- a/hw/display/sm501.c +++ b/hw/display/sm501.c @@ -901,7 +901,7 @@ static void sm501_2d_operation(SM501State *s) /* fallback when pixman failed or we don't want to call it */ uint8_t *d =3D s->local_mem + dst_base; unsigned int x, y, i; - for (y =3D 0; y < height; y++, i +=3D dst_pitch * bypp) { + for (y =3D 0; y < height; y++) { i =3D (dst_x + (dst_y + y) * dst_pitch) * bypp; for (x =3D 0; x < width; x++, i +=3D bypp) { stn_he_p(&d[i], bypp, color); --=20 2.40.1 From nobody Sat May 18 05:05:01 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; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1683304568; cv=none; d=zohomail.com; s=zohoarc; b=UbcE2uBhsoY0xvdDIN/n87QTd16ALFzP00S+QDY3ZMV/HtL5iVKkt1xoLqHlzQtD5cZTnpr4EWdUo0/+UWAFfvzQDXIYAEezzjcFcCpkX2WKPr1b7owkRV0kj1hR53IC9dVjp7bp/qEWwgKEfs496Imme6vI0cbMF0i3geV6SYs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1683304568; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=eHy0HJQ1lV3HX5R5N57n1GwLHd91WYmU4Ru7Dfuq1AI=; b=j783/H1fYQWK7YlJpZ1+FSmKAcCn9LI2mvEWyVAr+8hzYKgJJoOl4TPJXOE6KlIivbEKIf91lY4r5FPwCYROid6Vyp3Ozx3gzdWTjLmsN0xydI9frEm/r+pJe/6FeCZPRyfpl/K2f9g6QlOYtVWE9ZizPCwcjfHsUyZRbLYRwDA= 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; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1683304568383354.87131628722545; Fri, 5 May 2023 09:36:08 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1puyOc-0000V0-Oe; Fri, 05 May 2023 12:35:02 -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 1puyOb-0000Tm-5k; Fri, 05 May 2023 12:35:01 -0400 Received: from mail-oa1-x29.google.com ([2001:4860:4864:20::29]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1puyOY-0004t3-7M; Fri, 05 May 2023 12:35:00 -0400 Received: by mail-oa1-x29.google.com with SMTP id 586e51a60fabf-195c83a9ed8so328740fac.0; Fri, 05 May 2023 09:34:56 -0700 (PDT) Received: from grind.. (189-46-207-53.dsl.telesp.net.br. [189.46.207.53]) by smtp.gmail.com with ESMTPSA id z3-20020a9d62c3000000b006a43519523fsm1033475otk.1.2023.05.05.09.34.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 May 2023 09:34:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683304496; x=1685896496; 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=eHy0HJQ1lV3HX5R5N57n1GwLHd91WYmU4Ru7Dfuq1AI=; b=hsvCSTZQ8JKyN+TwBSdQPH84rtJPCr7cMfzWfK1pqfBB6BLJ+k4X5ImrDu8AD4kEFz TCHveGhFOPNvVY2Ybwt3uX0ujb/mf0Gw4QxhudHt/VVC6/1Y1djIM1ESWW1PfR2G6pIi aYEJH98PmKWrWr08kzu4CC2pgbueUAZWonivIdzxg8nJTveijiuIxp9E7bRg3bvbX/ai zuO5aZMcFGc6CFb6MSfnjCBK8xYVDTQ6+b710lANRSyUHb4awnfBHRTxh8BkfKuNqR3b fzYGDsk50OyVm6qi5ol5Ao+1vNdxnKkBKQOfwY8AL2JD2KPHaSfz5Vp1Y7iO8JKyVthj Y6ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683304496; x=1685896496; 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=eHy0HJQ1lV3HX5R5N57n1GwLHd91WYmU4Ru7Dfuq1AI=; b=EnOtPC8MCqBHuOdMm6GFO8hhxvnAEYtJfsAlmK3GS5CivHA9tSZMeLxNubYLULLV9L 7ENYoFJD+QSIHT+8JIIdtwnRTiuSSa9xAJA9wKvjaahqdFxqa6Aw2IOnicU0JDIr8pKd 617vJOk30ijCezaRhWLiyiuWrEeiSuJyzL9tYr1ZNSU1VvGPslh1H56rlsxhJLDb5p0w BLaWnyTSf3NWCUF7M+PoajZmonSQrFh08m6RQaSVmd7FW91oyxAGBmDQqYc+FGVb3Nia OehMBwPdwaEtqnwxchVQhDxZlafH2+IobPHJFP08/h0p6CCWmWrAjEi972c9jq17aFhY 8IMw== X-Gm-Message-State: AC+VfDzsLkqXlJvf8ttTNuaUocR5HWLaT5cQWb+eg6swXN5jfzQrgT9Y uFRcMhKpDzNyiYcF9D15LCh4gs/gcF0= X-Google-Smtp-Source: ACHHUZ7qKeyf7lhRJ3r+1Ev9gJDLrmAxVYmVwE8JjlNxCP+vncPG5GDjk4QEBslvbx9CNyjyNnCWNQ== X-Received: by 2002:a05:6870:98a7:b0:18c:988a:72dd with SMTP id eg39-20020a05687098a700b0018c988a72ddmr1397530oab.33.1683304495798; Fri, 05 May 2023 09:34:55 -0700 (PDT) From: Daniel Henrique Barboza To: qemu-devel@nongnu.org Cc: qemu-ppc@nongnu.org, danielhb413@gmail.com, peter.maydell@linaro.org, Harsh Prateek Bora , Fabiano Rosas , Richard Henderson Subject: [PULL 2/6] ppc: spapr: cleanup cr get/set with helpers. Date: Fri, 5 May 2023 13:34:40 -0300 Message-Id: <20230505163444.347006-3-danielhb413@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230505163444.347006-1-danielhb413@gmail.com> References: <20230505163444.347006-1-danielhb413@gmail.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: pass client-ip=2001:4860:4864:20::29; envelope-from=danielhb413@gmail.com; helo=mail-oa1-x29.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, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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 @gmail.com) X-ZM-MESSAGEID: 1683304570257100005 Content-Type: text/plain; charset="utf-8" From: Harsh Prateek Bora The bits in cr reg are grouped into eight 4-bit fields represented by env->crf[8] and the related calculations should be abstracted to keep the calling routines simpler to read. This is a step towards cleaning up the related/calling code for better readability. Signed-off-by: Harsh Prateek Bora Reviewed-by: Fabiano Rosas Reviewed-by: Richard Henderson Message-Id: <20230503093619.2530487-2-harshpb@linux.ibm.com> [danielhb: add 'const' modifier to fix linux-user build] Signed-off-by: Daniel Henrique Barboza --- hw/ppc/spapr_hcall.c | 18 ++---------------- linux-user/elfload.c | 4 +--- linux-user/ppc/signal.c | 9 ++------- target/ppc/cpu.c | 17 +++++++++++++++++ target/ppc/cpu.h | 2 ++ target/ppc/gdbstub.c | 22 ++++------------------ target/ppc/kvm.c | 13 ++----------- target/ppc/ppc-qmp-cmds.c | 6 +----- 8 files changed, 31 insertions(+), 60 deletions(-) diff --git a/hw/ppc/spapr_hcall.c b/hw/ppc/spapr_hcall.c index ec4def62f8..1c102c8c0d 100644 --- a/hw/ppc/spapr_hcall.c +++ b/hw/ppc/spapr_hcall.c @@ -1566,8 +1566,6 @@ static target_ulong h_enter_nested(PowerPCCPU *cpu, struct kvmppc_hv_guest_state hv_state; struct kvmppc_pt_regs *regs; hwaddr len; - uint64_t cr; - int i; =20 if (spapr->nested_ptcr =3D=3D 0) { return H_NOT_AVAILABLE; @@ -1616,12 +1614,7 @@ static target_ulong h_enter_nested(PowerPCCPU *cpu, env->lr =3D regs->link; env->ctr =3D regs->ctr; cpu_write_xer(env, regs->xer); - - cr =3D regs->ccr; - for (i =3D 7; i >=3D 0; i--) { - env->crf[i] =3D cr & 15; - cr >>=3D 4; - } + ppc_set_cr(env, regs->ccr); =20 env->msr =3D regs->msr; env->nip =3D regs->nip; @@ -1698,8 +1691,6 @@ void spapr_exit_nested(PowerPCCPU *cpu, int excp) struct kvmppc_hv_guest_state *hvstate; struct kvmppc_pt_regs *regs; hwaddr len; - uint64_t cr; - int i; =20 assert(spapr_cpu->in_nested); =20 @@ -1757,12 +1748,7 @@ void spapr_exit_nested(PowerPCCPU *cpu, int excp) regs->link =3D env->lr; regs->ctr =3D env->ctr; regs->xer =3D cpu_read_xer(env); - - cr =3D 0; - for (i =3D 0; i < 8; i++) { - cr |=3D (env->crf[i] & 15) << (4 * (7 - i)); - } - regs->ccr =3D cr; + regs->ccr =3D ppc_get_cr(env); =20 if (excp =3D=3D POWERPC_EXCP_MCHECK || excp =3D=3D POWERPC_EXCP_RESET || diff --git a/linux-user/elfload.c b/linux-user/elfload.c index f1370a7a8b..703f7434a0 100644 --- a/linux-user/elfload.c +++ b/linux-user/elfload.c @@ -961,9 +961,7 @@ static void elf_core_copy_regs(target_elf_gregset_t *re= gs, const CPUPPCState *en (*regs)[36] =3D tswapreg(env->lr); (*regs)[37] =3D tswapreg(cpu_read_xer(env)); =20 - for (i =3D 0; i < ARRAY_SIZE(env->crf); i++) { - ccr |=3D env->crf[i] << (32 - ((i + 1) * 4)); - } + ccr =3D ppc_get_cr(env); (*regs)[38] =3D tswapreg(ccr); } =20 diff --git a/linux-user/ppc/signal.c b/linux-user/ppc/signal.c index 07729c1653..a616f20efb 100644 --- a/linux-user/ppc/signal.c +++ b/linux-user/ppc/signal.c @@ -243,9 +243,7 @@ static void save_user_regs(CPUPPCState *env, struct tar= get_mcontext *frame) __put_user(env->lr, &frame->mc_gregs[TARGET_PT_LNK]); __put_user(cpu_read_xer(env), &frame->mc_gregs[TARGET_PT_XER]); =20 - for (i =3D 0; i < ARRAY_SIZE(env->crf); i++) { - ccr |=3D env->crf[i] << (32 - ((i + 1) * 4)); - } + ccr =3D ppc_get_cr(env); __put_user(ccr, &frame->mc_gregs[TARGET_PT_CCR]); =20 /* Save Altivec registers if necessary. */ @@ -335,10 +333,7 @@ static void restore_user_regs(CPUPPCState *env, cpu_write_xer(env, xer); =20 __get_user(ccr, &frame->mc_gregs[TARGET_PT_CCR]); - for (i =3D 0; i < ARRAY_SIZE(env->crf); i++) { - env->crf[i] =3D (ccr >> (32 - ((i + 1) * 4))) & 0xf; - } - + ppc_set_cr(env, ccr); if (!sig) { env->gpr[2] =3D save_r2; } diff --git a/target/ppc/cpu.c b/target/ppc/cpu.c index 1a97b41c6b..424f2e1741 100644 --- a/target/ppc/cpu.c +++ b/target/ppc/cpu.c @@ -67,6 +67,23 @@ uint32_t ppc_get_vscr(CPUPPCState *env) return env->vscr | (sat << VSCR_SAT); } =20 +void ppc_set_cr(CPUPPCState *env, uint64_t cr) +{ + for (int i =3D 7; i >=3D 0; i--) { + env->crf[i] =3D cr & 0xf; + cr >>=3D 4; + } +} + +uint64_t ppc_get_cr(const CPUPPCState *env) +{ + uint64_t cr =3D 0; + for (int i =3D 0; i < 8; i++) { + cr |=3D (env->crf[i] & 0xf) << (4 * (7 - i)); + } + return cr; +} + /* GDBstub can read and write MSR... */ void ppc_store_msr(CPUPPCState *env, target_ulong value) { diff --git a/target/ppc/cpu.h b/target/ppc/cpu.h index 557d736dab..1c02596d9f 100644 --- a/target/ppc/cpu.h +++ b/target/ppc/cpu.h @@ -2773,6 +2773,8 @@ void dump_mmu(CPUPPCState *env); void ppc_maybe_bswap_register(CPUPPCState *env, uint8_t *mem_buf, int len); void ppc_store_vscr(CPUPPCState *env, uint32_t vscr); uint32_t ppc_get_vscr(CPUPPCState *env); +void ppc_set_cr(CPUPPCState *env, uint64_t cr); +uint64_t ppc_get_cr(const CPUPPCState *env); =20 /*************************************************************************= ****/ /* Power management enable checks = */ diff --git a/target/ppc/gdbstub.c b/target/ppc/gdbstub.c index d2bc1d7c53..63c9abe4f1 100644 --- a/target/ppc/gdbstub.c +++ b/target/ppc/gdbstub.c @@ -145,11 +145,7 @@ int ppc_cpu_gdb_read_register(CPUState *cs, GByteArray= *buf, int n) break; case 66: { - uint32_t cr =3D 0; - int i; - for (i =3D 0; i < 8; i++) { - cr |=3D env->crf[i] << (32 - ((i + 1) * 4)); - } + uint32_t cr =3D ppc_get_cr(env); gdb_get_reg32(buf, cr); break; } @@ -203,11 +199,7 @@ int ppc_cpu_gdb_read_register_apple(CPUState *cs, GByt= eArray *buf, int n) break; case 66 + 32: { - uint32_t cr =3D 0; - int i; - for (i =3D 0; i < 8; i++) { - cr |=3D env->crf[i] << (32 - ((i + 1) * 4)); - } + uint32_t cr =3D ppc_get_cr(env); gdb_get_reg32(buf, cr); break; } @@ -257,10 +249,7 @@ int ppc_cpu_gdb_write_register(CPUState *cs, uint8_t *= mem_buf, int n) case 66: { uint32_t cr =3D ldl_p(mem_buf); - int i; - for (i =3D 0; i < 8; i++) { - env->crf[i] =3D (cr >> (32 - ((i + 1) * 4))) & 0xF; - } + ppc_set_cr(env, cr); break; } case 67: @@ -307,10 +296,7 @@ int ppc_cpu_gdb_write_register_apple(CPUState *cs, uin= t8_t *mem_buf, int n) case 66 + 32: { uint32_t cr =3D ldl_p(mem_buf); - int i; - for (i =3D 0; i < 8; i++) { - env->crf[i] =3D (cr >> (32 - ((i + 1) * 4))) & 0xF; - } + ppc_set_cr(env, cr); break; } case 67 + 32: diff --git a/target/ppc/kvm.c b/target/ppc/kvm.c index 78f6fc50cd..336e663bc3 100644 --- a/target/ppc/kvm.c +++ b/target/ppc/kvm.c @@ -927,10 +927,7 @@ int kvm_arch_put_registers(CPUState *cs, int level) regs.gpr[i] =3D env->gpr[i]; } =20 - regs.cr =3D 0; - for (i =3D 0; i < 8; i++) { - regs.cr |=3D (env->crf[i] & 15) << (4 * (7 - i)); - } + regs.cr =3D ppc_get_cr(env); =20 ret =3D kvm_vcpu_ioctl(cs, KVM_SET_REGS, ®s); if (ret < 0) { @@ -1205,7 +1202,6 @@ int kvm_arch_get_registers(CPUState *cs) PowerPCCPU *cpu =3D POWERPC_CPU(cs); CPUPPCState *env =3D &cpu->env; struct kvm_regs regs; - uint32_t cr; int i, ret; =20 ret =3D kvm_vcpu_ioctl(cs, KVM_GET_REGS, ®s); @@ -1213,12 +1209,7 @@ int kvm_arch_get_registers(CPUState *cs) return ret; } =20 - cr =3D regs.cr; - for (i =3D 7; i >=3D 0; i--) { - env->crf[i] =3D cr & 15; - cr >>=3D 4; - } - + ppc_set_cr(env, regs.cr); env->ctr =3D regs.ctr; env->lr =3D regs.lr; cpu_write_xer(env, regs.xer); diff --git a/target/ppc/ppc-qmp-cmds.c b/target/ppc/ppc-qmp-cmds.c index 36e5b5eff8..f9acc21056 100644 --- a/target/ppc/ppc-qmp-cmds.c +++ b/target/ppc/ppc-qmp-cmds.c @@ -37,12 +37,8 @@ static target_long monitor_get_ccr(Monitor *mon, const s= truct MonitorDef *md, { CPUArchState *env =3D mon_get_cpu_env(mon); unsigned int u; - int i; =20 - u =3D 0; - for (i =3D 0; i < 8; i++) { - u |=3D env->crf[i] << (32 - (4 * (i + 1))); - } + u =3D ppc_get_cr(env); =20 return u; } --=20 2.40.1 From nobody Sat May 18 05:05:01 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; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1683304583; cv=none; d=zohomail.com; s=zohoarc; b=EZ0VaBlR4911oprvPEAkuK3hAHuw6Xd2poQ53UqdAveGiq2+G3EycGAp3yQxE9WOi8t8yVfA64ErLPSKBNom1P/GN21HumAGZ8N2ouGYn2ZOfZNac7MT0QebsDnYLNww+noWm1r9LUZ6TIkVAUusYXlCmXn4CVsqTGTrXFDX2n4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1683304583; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=BvZj1YOrInqqbWuFvor3phNSI1PiHIsDRB+lOfZ4/U8=; b=CO9ALLapmTScm5uoUA3hSoDe/nags0mltHZd9I+N4oH+e0dzfaNcjKL9qoyxsYdz2OMc9nW9PjSBEPNl5l7pPQDjqEkqWP5gDxEdKyhAC31fgF48EArPjLG9qrPl7eLrpyBkTfw/fju7XzkxWkUV4BY2INpiimImwyLJQMGf4To= 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; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 168330458363352.9246664885211; Fri, 5 May 2023 09:36:23 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1puyOc-0000Ub-1q; Fri, 05 May 2023 12:35:02 -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 1puyOb-0000Te-1H; Fri, 05 May 2023 12:35:01 -0400 Received: from mail-oa1-x33.google.com ([2001:4860:4864:20::33]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1puyOZ-0004tH-Jn; Fri, 05 May 2023 12:35:00 -0400 Received: by mail-oa1-x33.google.com with SMTP id 586e51a60fabf-18f4a6d2822so18482296fac.1; Fri, 05 May 2023 09:34:58 -0700 (PDT) Received: from grind.. (189-46-207-53.dsl.telesp.net.br. [189.46.207.53]) by smtp.gmail.com with ESMTPSA id z3-20020a9d62c3000000b006a43519523fsm1033475otk.1.2023.05.05.09.34.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 May 2023 09:34:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683304498; x=1685896498; 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=BvZj1YOrInqqbWuFvor3phNSI1PiHIsDRB+lOfZ4/U8=; b=T/JySgqZyyWmA8aNZS+TBLMB4FLf8CoQ+TfI+X0MuXgTl2HB5D1Hg4Rp5QrEPtYQWM O0Sdel1QC9vREofToxw3vph4Q8o2eZ2RJK9pThsYbpICUdL3ATsfjxt0xu4UkvdbU0Zh 0tnIKIS4WjDigHaNtvZSBwaseTYPpLX8mX/lLApMZBXQG3qozavg/rhxXXiudibCboSQ GdYCozNAU0vdVYuU1IhLzkeOmnjT2YhoHiwV1k41ARBzViMVjT4ZF8121ma8pTcgvEwI VRfLB00ZUOJK3J5diH1E4uJhyg76sqMay7zRq8Eu7WZx6KtRY4oupvHO1OPybzQ71SiO YL8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683304498; x=1685896498; 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=BvZj1YOrInqqbWuFvor3phNSI1PiHIsDRB+lOfZ4/U8=; b=fpwLe3p34HTSc7kK2menXjA0NucFpmbWygyKmJtI0jraiwBT0I0bw6DSY+YUiMDWnx BNwAnv42EtxkojKgtSPy69r4zISqb3YT4ZaGyCO62hRa3fo8NTVci9+3X+U9Grk8INJy vrtiVOxi125tKnqzqMnwkeUoLSok0VscSQydVie8Ph+fQyfWLfPnua+YKfbdRzqsBICL WiQ89F7f0XvaBDph1Q++MlcdlOkHiENbXjrbJeey6ypUQGWuknZaCc9O7Jn6ARVkjHMm 7uwTOI009fKIkZrY9Z13dRI1G1ceRKckvaWJi+jWzxXjtcCJ7zGqJ+Lwk19nVvNxXfFH 3oAw== X-Gm-Message-State: AC+VfDzkDPJM7/I8NwF+dLjbGRVD/sEsUT9KcfAX0i8KhDNbYTWW5dwe sn5k/nO2wMLKdwoW7Rl1fPyx7t/kcq0= X-Google-Smtp-Source: ACHHUZ68YxQZHSzA+Gtp2uiUpxtvohKtn/4IwXI0Ov7R2PV0GEQnJf33r5lc2FRNaC793VlTUmlkKA== X-Received: by 2002:a05:6870:a10b:b0:184:2b9d:2b12 with SMTP id m11-20020a056870a10b00b001842b9d2b12mr3278036oae.13.1683304497960; Fri, 05 May 2023 09:34:57 -0700 (PDT) From: Daniel Henrique Barboza To: qemu-devel@nongnu.org Cc: qemu-ppc@nongnu.org, danielhb413@gmail.com, peter.maydell@linaro.org, Harsh Prateek Bora Subject: [PULL 3/6] MAINTAINERS: Adding myself in the list for ppc/spapr Date: Fri, 5 May 2023 13:34:41 -0300 Message-Id: <20230505163444.347006-4-danielhb413@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230505163444.347006-1-danielhb413@gmail.com> References: <20230505163444.347006-1-danielhb413@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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: pass client-ip=2001:4860:4864:20::33; envelope-from=danielhb413@gmail.com; helo=mail-oa1-x33.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, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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 @gmail.com) X-ZM-MESSAGEID: 1683304585609100005 From: Harsh Prateek Bora Would like to get notified of changes in this area and review them. Signed-off-by: Harsh Prateek Bora Reviewed-by: Daniel Henrique Barboza Message-Id: <20230503093619.2530487-3-harshpb@linux.ibm.com> Signed-off-by: Daniel Henrique Barboza --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 431556c217..55102f4761 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1422,6 +1422,7 @@ M: Daniel Henrique Barboza R: C=C3=A9dric Le Goater R: David Gibson R: Greg Kurz +R: Harsh Prateek Bora L: qemu-ppc@nongnu.org S: Odd Fixes F: hw/*/spapr* --=20 2.40.1 From nobody Sat May 18 05:05:01 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; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1683304599; cv=none; d=zohomail.com; s=zohoarc; b=Hb1wQfBXvxAQvu1UMCAtU9e82kwgrVgzw7KYbMibd2Elgoz3XOj5ZijijjtOwD2eN9fS+Z4gNP1zVJ1f6z6Y7Ww708RCQ29UtUR8NVs4InEydH4O5LJYOc/7uPSq8v0WKJjH1xss5LCFNJSkkaZO2d2Sc6BZAHyrvb9CNqlS/fo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1683304599; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=Jbx/0so/ks6rJVukEiTYoE7hqjtEvDeuQ+ZtkpBDRKw=; b=kIpnJhLXpBk5/qRyRyv8mnhoGWbyuOAys+k7iTFltE8yvEL4NnavPFi+I2kXuKu/SGIyB9nKmfoMDdfYlZjuJlcWzikwU2b14d9qKWyGSc1RSwOX5ozzWbjxNpCq7cU8a6fe4FNpFFqmsfh8rhKDLZ//QxKw311uOzT71/oSrYg= 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; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1683304599000738.8478795205783; Fri, 5 May 2023 09:36:39 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1puyOf-0000XB-JF; Fri, 05 May 2023 12:35:05 -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 1puyOe-0000Vk-Ex; Fri, 05 May 2023 12:35:04 -0400 Received: from mail-ot1-x32d.google.com ([2607:f8b0: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 1puyOc-0004uG-NY; Fri, 05 May 2023 12:35:04 -0400 Received: by mail-ot1-x32d.google.com with SMTP id 46e09a7af769-6a606135408so1791681a34.0; Fri, 05 May 2023 09:35:01 -0700 (PDT) Received: from grind.. (189-46-207-53.dsl.telesp.net.br. [189.46.207.53]) by smtp.gmail.com with ESMTPSA id z3-20020a9d62c3000000b006a43519523fsm1033475otk.1.2023.05.05.09.34.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 May 2023 09:35:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683304501; x=1685896501; 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=Jbx/0so/ks6rJVukEiTYoE7hqjtEvDeuQ+ZtkpBDRKw=; b=c3aLmMLutOoFSznxpEj2InimHOcUSz5Te+9SfeOJWpuI3o5sIU8HDoKcbYLHmKnvfx ifs+s+TVuruB2sXfVpsK05ymVDGbXKO19dXzuckS9PtE38FC1TFWBoIpQ69+UQ+jDBly oeHfuX756ZaiouRuwWDAe6vDjnHiHuDzijbWqUUya5gL7Guh/5bGJp9drQXy50qyr2rL 7QC0SPggBnPLWr9/U4h6f4glb7arYOsuc4IsUkPVYov+8Ejk8fJ7i/rfDCSRSFhGno5V ghn+i99LFZokDDCjUIDxuV/lBI7uV2FNQ9LgaYGZ8BqQRPyQzqiTpvodZ71B5rVT91OA fWXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683304501; x=1685896501; 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=Jbx/0so/ks6rJVukEiTYoE7hqjtEvDeuQ+ZtkpBDRKw=; b=HfIkImO6dVBgHR67JpwRMc/aGcHR8m/UhcCdAaKBCEJ7dw3qrprvS3kbPggLOXr6aa DOBS9s+a5MJfZzMcISn1ru5ICdmUmEZjSvM3/7yvMWBLR5nsLLGWqcylqw6yGTDah9/F nUJwhA4kGmwmveNXFECg3o9kgXufEIsJ1Wym8yAbtX12Y6tUsWYD09N3K9IE8qxk0J3e YSBAKIRTA85h9t8b2yQBALP3LM9W4GrwlrF1/vG2GDX4eilxe/ltpOguHjEjzCUUNvsG +50OkVUsz93V3g4CkKGtzrpUO4D7i7+TW3wqhBdXT5HRHdFKVaMGwnyr+Y/OoqbGbPVz qkyg== X-Gm-Message-State: AC+VfDwqC9LUBez7iD+ETY4PsuM6R6ByZ3bFukcuNZ+4zTWp/wUJgdeG rwT15l9x4uMLoQfDGajqb7zWT1cpyX4= X-Google-Smtp-Source: ACHHUZ6B0Kc+KaB7yntZ8GdzGyD0r5QMkyxAVAqoEOfAgoJIU/yLlap1z9Mh2Awf11PXGVupQlxdcQ== X-Received: by 2002:a05:6830:208b:b0:69f:165b:1509 with SMTP id y11-20020a056830208b00b0069f165b1509mr952287otq.35.1683304500956; Fri, 05 May 2023 09:35:00 -0700 (PDT) From: Daniel Henrique Barboza To: qemu-devel@nongnu.org Cc: qemu-ppc@nongnu.org, danielhb413@gmail.com, peter.maydell@linaro.org, Shivaprasad G Bhat , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Lucas Mateus Castro , Richard Henderson , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Subject: [PULL 4/6] tcg: ppc64: Fix mask generation for vextractdm Date: Fri, 5 May 2023 13:34:42 -0300 Message-Id: <20230505163444.347006-5-danielhb413@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230505163444.347006-1-danielhb413@gmail.com> References: <20230505163444.347006-1-danielhb413@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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: pass client-ip=2607:f8b0:4864:20::32d; envelope-from=danielhb413@gmail.com; helo=mail-ot1-x32d.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, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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 @gmail.com) X-ZM-MESSAGEID: 1683304599660100004 From: Shivaprasad G Bhat In function do_extractm() the mask is calculated as dup_const(1 << (element_width - 1)). '1' being signed int works fine for MO_8,16,32. For MO_64, on PPC64 host this ends up becoming 0 on compilation. The vextractdm uses MO_64, and it ends up having mask as 0. Explicitly use 1ULL instead of signed int 1 like its used everywhere else. Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1536 Signed-off-by: Shivaprasad G Bhat Reviewed-by: Alex Benn=C3=A9e Reviewed-by: Lucas Mateus Castro Reviewed-by: Richard Henderson Reviewed-by: C=C3=A9dric Le Goater Message-Id: <168319292809.1159309.5817546227121323288.stgit@ltc-boston1.aus= .stglabs.ibm.com> Signed-off-by: Daniel Henrique Barboza --- target/ppc/translate/vmx-impl.c.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/ppc/translate/vmx-impl.c.inc b/target/ppc/translate/vmx= -impl.c.inc index 112233b541..c8712dd7d8 100644 --- a/target/ppc/translate/vmx-impl.c.inc +++ b/target/ppc/translate/vmx-impl.c.inc @@ -2058,7 +2058,7 @@ static bool trans_VEXPANDQM(DisasContext *ctx, arg_VX= _tb *a) static bool do_vextractm(DisasContext *ctx, arg_VX_tb *a, unsigned vece) { const uint64_t elem_width =3D 8 << vece, elem_count_half =3D 8 >> vece, - mask =3D dup_const(vece, 1 << (elem_width - 1)); + mask =3D dup_const(vece, 1ULL << (elem_width - 1)); uint64_t i, j; TCGv_i64 lo, hi, t0, t1; =20 --=20 2.40.1 From nobody Sat May 18 05:05:01 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; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1683304569; cv=none; d=zohomail.com; s=zohoarc; b=H19bjqB/j6nJ4c1S2PnR9sz4vJzIJeuaId2ShvoybToS7g4KtarOq+ZKdjR6zdYP6r4f/NZ/fiTs1F4MmHFeCiiXYAd85YAn9fQDDPcxa/4QcfxTIFhPS1x+vhtRYQR1x0wl+Q+lihKVeBw9yLA0lNYIE935v5St6PgOM0Qj9NE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1683304569; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=KqvU8//8WYRiuqj0LMjiqtFrHPWBBdy2oZBbIlb2Uak=; b=kIT1DHwDM1ygLkLD0Ui8GOOxbnSUDTxRi6oV50+qntpETmA4ACDBflYeY7wtw7puRpTDWZeQNLrhi5qiRYj7u1cbsYxBLixcmnT7+SA6FfIMqQk2plY/AcL50txTm5YWNr6v/Q4zVhcsd77F4Kp1JMoZ5QIVX93X/DeEedcGGMA= 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; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 16833045697681006.4821224265074; Fri, 5 May 2023 09:36:09 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1puyOp-0000Z6-WD; Fri, 05 May 2023 12:35:16 -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 1puyOh-0000Ya-G8; Fri, 05 May 2023 12:35:12 -0400 Received: from mail-ot1-x32d.google.com ([2607:f8b0: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 1puyOf-00055M-LD; Fri, 05 May 2023 12:35:07 -0400 Received: by mail-ot1-x32d.google.com with SMTP id 46e09a7af769-6a5ef766282so1538061a34.0; Fri, 05 May 2023 09:35:04 -0700 (PDT) Received: from grind.. (189-46-207-53.dsl.telesp.net.br. [189.46.207.53]) by smtp.gmail.com with ESMTPSA id z3-20020a9d62c3000000b006a43519523fsm1033475otk.1.2023.05.05.09.35.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 May 2023 09:35:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683304504; x=1685896504; 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=KqvU8//8WYRiuqj0LMjiqtFrHPWBBdy2oZBbIlb2Uak=; b=lJECY7nh8zXY0KmqIJDMWVxaOhZtGiKYnIS6iCdl7Gvskhhggb1EWd5G6Na0Tqo2qe bg6qnOkWn2Emdqay4Z/VL8mZa3NSM/y0/+zHZEKxrDhNcFBNAqWN8lvki4Li6I0GafKP 8FAyZLHCQ0bZWLAlNQmM8EOXOlazhCkgJq4Y/55iq5WOwk9RJtU3X8IxIp93f2jfgMUU fd4JZwqavmKNY5yIlcrbaTWEfdJ3XLNQ2btaaqH+yza3zg31rkK0Dsgr26d+I10RrlMx IiervQe/t/3EPYeFX0XIEpBZU/jgQZdeb7vPBOWsPTuxK8IYB6CFRQYMTfxnRxMSXIGu FOYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683304504; x=1685896504; 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=KqvU8//8WYRiuqj0LMjiqtFrHPWBBdy2oZBbIlb2Uak=; b=gjpTzRtTfbzQgeLFBSU7azpYBS6HUMnTD0vkORbdfQocQDuOkMCuCOstzG0jauH6la YT8TDLblAR3EiRgdJcVJy8NU5/wJijGEXhPPkqr9tfNFiiN+mejvPi/gvmtjv44JKBPB v7xZCBJdBYtMqfYa4aw+Y1S8OmKd+wLaEz+1B2SIOKxgF+4wnDfgCgQbUVwgzgS6AzfG VNOgyX4PhuFY6rMekMrObB1R6ZOw1JnPflvKZXxw3VjGIHETx173zJ/mQnpkaOWiavAD 7x58uvD+yO/pzk2VVH+L2SKbmURTcuy6ewa3NDcBBi2+BXjLz+IAFhWHkG9IWlyWV33h IKPw== X-Gm-Message-State: AC+VfDxx6V7fwQ3KJh1H6QS0V+wjWccWeNJHASVxVdtjyjlKWzkuYaPZ V+3yuR0K2+tI4kUUtkMAhjDnyutocVs= X-Google-Smtp-Source: ACHHUZ6Pnjhm2l4BqRC8m6K6+ChFK7DDnZ0WTTchCJ7bwUWSYjb1X2Ig0czbWQbZ32OZvhxS5f1m0A== X-Received: by 2002:a9d:65d7:0:b0:6a6:767:ed71 with SMTP id z23-20020a9d65d7000000b006a60767ed71mr1152422oth.18.1683304504026; Fri, 05 May 2023 09:35:04 -0700 (PDT) From: Daniel Henrique Barboza To: qemu-devel@nongnu.org Cc: qemu-ppc@nongnu.org, danielhb413@gmail.com, peter.maydell@linaro.org, Shivaprasad G Bhat , John Platts , Lucas Mateus Castro , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Subject: [PULL 5/6] tests: tcg: ppc64: Add tests for Vector Extract Mask Instructions Date: Fri, 5 May 2023 13:34:43 -0300 Message-Id: <20230505163444.347006-6-danielhb413@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230505163444.347006-1-danielhb413@gmail.com> References: <20230505163444.347006-1-danielhb413@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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: pass client-ip=2607:f8b0:4864:20::32d; envelope-from=danielhb413@gmail.com; helo=mail-ot1-x32d.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, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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 @gmail.com) X-ZM-MESSAGEID: 1683304570356100007 From: Shivaprasad G Bhat Add test for vextractbm, vextractwm, vextractdm and vextractqm instructions. Test works for both qemu-ppc64 and qemu-ppc64le. Based on the test case written by John Platts posted at [1] References: [1] - https://gitlab.com/qemu-project/qemu/-/issues/1536 Signed-off-by: John Platts Signed-off-by: Shivaprasad G Bhat Reviewed-by: Lucas Mateus Castro Reviewed-by: C=C3=A9dric Le Goater Message-Id: <168319294881.1159309.17060400720026083557.stgit@ltc-boston1.au= s.stglabs.ibm.com> Signed-off-by: Daniel Henrique Barboza --- tests/tcg/ppc64/Makefile.target | 5 +++- tests/tcg/ppc64/vector.c | 51 +++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 tests/tcg/ppc64/vector.c diff --git a/tests/tcg/ppc64/Makefile.target b/tests/tcg/ppc64/Makefile.tar= get index 6d47d3cae6..b084963b9a 100644 --- a/tests/tcg/ppc64/Makefile.target +++ b/tests/tcg/ppc64/Makefile.target @@ -20,7 +20,7 @@ PPC64_TESTS +=3D mtfsf PPC64_TESTS +=3D mffsce =20 ifneq ($(CROSS_CC_HAS_POWER10),) -PPC64_TESTS +=3D byte_reverse sha512-vector +PPC64_TESTS +=3D byte_reverse sha512-vector vector endif byte_reverse: CFLAGS +=3D -mcpu=3Dpower10 run-byte_reverse: QEMU_OPTS+=3D-cpu POWER10 @@ -31,6 +31,9 @@ sha512-vector: sha512.c =20 run-sha512-vector: QEMU_OPTS+=3D-cpu POWER10 =20 +vector: CFLAGS +=3D -mcpu=3Dpower10 -I$(SRC_PATH)/include +run-vector: QEMU_OPTS +=3D -cpu POWER10 + PPC64_TESTS +=3D signal_save_restore_xer PPC64_TESTS +=3D xxspltw =20 diff --git a/tests/tcg/ppc64/vector.c b/tests/tcg/ppc64/vector.c new file mode 100644 index 0000000000..cbf4ae9332 --- /dev/null +++ b/tests/tcg/ppc64/vector.c @@ -0,0 +1,51 @@ +#include +#include +#include "qemu/compiler.h" + +int main(void) +{ + unsigned int result_wi; + vector unsigned char vbc_bi_src =3D { 0xFF, 0xFF, 0, 0xFF, 0xFF, 0xFF, + 0xFF, 0xFF, 0xFF, 0xFF, 0, 0, 0, + 0, 0xFF, 0xFF}; + vector unsigned short vbc_hi_src =3D { 0xFFFF, 0, 0, 0xFFFF, + 0, 0, 0xFFFF, 0xFFFF}; + vector unsigned int vbc_wi_src =3D {0, 0, 0xFFFFFFFF, 0xFFFFFFFF}; + vector unsigned long long vbc_di_src =3D {0xFFFFFFFFFFFFFFFF, 0}; + vector __uint128_t vbc_qi_src; + + asm("vextractbm %0, %1" : "=3Dr" (result_wi) : "v" (vbc_bi_src)); +#if HOST_BIG_ENDIAN + assert(result_wi =3D=3D 0b1101111111000011); +#else + assert(result_wi =3D=3D 0b1100001111111011); +#endif + + asm("vextracthm %0, %1" : "=3Dr" (result_wi) : "v" (vbc_hi_src)); +#if HOST_BIG_ENDIAN + assert(result_wi =3D=3D 0b10010011); +#else + assert(result_wi =3D=3D 0b11001001); +#endif + + asm("vextractwm %0, %1" : "=3Dr" (result_wi) : "v" (vbc_wi_src)); +#if HOST_BIG_ENDIAN + assert(result_wi =3D=3D 0b0011); +#else + assert(result_wi =3D=3D 0b1100); +#endif + + asm("vextractdm %0, %1" : "=3Dr" (result_wi) : "v" (vbc_di_src)); +#if HOST_BIG_ENDIAN + assert(result_wi =3D=3D 0b10); +#else + assert(result_wi =3D=3D 0b01); +#endif + + vbc_qi_src[0] =3D 0x1; + vbc_qi_src[0] =3D vbc_qi_src[0] << 127; + asm("vextractqm %0, %1" : "=3Dr" (result_wi) : "v" (vbc_qi_src)); + assert(result_wi =3D=3D 0b1); + + return 0; +} --=20 2.40.1 From nobody Sat May 18 05:05:01 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; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1683304583; cv=none; d=zohomail.com; s=zohoarc; b=HKgpYFr+qclJh7ePIAhwdq0cIkIP6tF23n/KVJlEYj4hbGCLUs3m/bJEr/b4lWVWkbio2mbDHidKOLDZCm8h2iKawXiOvmYJ9VC129+gO348zmUkX1BhcHJwvAr5PUrK3zY7SphLc45o6mkBSnQVlhOD2ZIPwYb7Yv5wNeIhXQc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1683304583; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=lYUGzxH80qMCTSOOXwriMGyo86X2j1XLCmtgpmq1JFw=; b=VWgtwnrXB271lV1XUScsCwuVkB0Vwzjl3uG/T1V/+WSZyb4Awk7Uy1l32vmYKg/oUfk7+71Whu+oOdJ4hwLGzEiR2Pjghi/aDjr76gMn+nhsypA41h+L3wMUc1DXHvaxj44vOC6GUVwiDvhQVJ91eZEhUMT+zCHIvMhqqBdoV3k= 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; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1683304583348564.0336246651775; Fri, 5 May 2023 09:36:23 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1puyOx-0000c4-Rd; Fri, 05 May 2023 12:35:23 -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 1puyOo-0000ZC-MD; Fri, 05 May 2023 12:35:15 -0400 Received: from mail-ot1-x329.google.com ([2607:f8b0:4864:20::329]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1puyOh-00055p-Vu; Fri, 05 May 2023 12:35:12 -0400 Received: by mail-ot1-x329.google.com with SMTP id 46e09a7af769-6a5f7d10dd5so1364167a34.0; Fri, 05 May 2023 09:35:07 -0700 (PDT) Received: from grind.. (189-46-207-53.dsl.telesp.net.br. [189.46.207.53]) by smtp.gmail.com with ESMTPSA id z3-20020a9d62c3000000b006a43519523fsm1033475otk.1.2023.05.05.09.35.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 May 2023 09:35:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683304506; x=1685896506; 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=lYUGzxH80qMCTSOOXwriMGyo86X2j1XLCmtgpmq1JFw=; b=RR5gXuJ5/YThc6rouAYq+yFF8dEf4NGe2QzEi1RxrwVx3Ew07jco0wD0v4akrpS6G8 Xl1mgTQuHx3VWPua3Q4ZoOorSWVtHoQ5WTUljwo6u5NA++NdpwA6FRpWtGgpFsB1AzYQ C2YBTLGSwlhzB8qVU86gKVwx1PvJq8PDPGDJ4GO0Pb3RCmnIpHdpyt1DHR/giO76AAJu CsAekleAh8maYPXslzziCXcMJ02Yj73B3opLdTi9N7KL+Vpz9Hugt+Be883qPsWpvYAT jKY5weAFZet76JWOpL4t+DflUIXR9J+3WJlAkCJvwaizkjA3C6wjk1MGGwKA3k95Te4m +w9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683304506; x=1685896506; 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=lYUGzxH80qMCTSOOXwriMGyo86X2j1XLCmtgpmq1JFw=; b=Ggc0NyBKy1Fvj8ZclQ6WWtVZ6+pDXigSrp6uRK+IHRuRrsxwJWBVfRh2CEVhvsvLdo IERS60im0D++r8uOQxo3gtbq6pKaHfBnyN1U2HWbqLDjKXv+7TfLRiAdOJyMHgfgM3Og oKOPtRfh6q38dJ89nk7UeSTqWwMZa4gxWSplgW6yQp0dk9PD3qKEpeHZ6k7YmnNPAN5W wurJoGH0TPiGU1N1YbQKXj4L/HfBAhA0mZ0KijoooF3jyeFIAiVbXjz9p0gwN+nDXbj6 TlOLNY0aSx97UgOW2TL6UkFyj7oUunQIfjnQYs7qxpIjed4K/zzkJINNCd2/7/v5HyDM ySPQ== X-Gm-Message-State: AC+VfDwSESI+hKsH8EIKLyr43xxNmYSKSfJBVE+znL9J8nwTnj3gUwIo YN/5el2PQ/ygXy2pokQbXOIb/A7GBAY= X-Google-Smtp-Source: ACHHUZ7X1Qi+CtA08psAXiqup4aAtdxY1sAK9+ot3R2XVO95H96VNLFhAgP4xy1IM0IDHHof/DBIjw== X-Received: by 2002:a05:6830:1501:b0:6a7:c44a:ddd6 with SMTP id k1-20020a056830150100b006a7c44addd6mr1004435otp.11.1683304506338; Fri, 05 May 2023 09:35:06 -0700 (PDT) From: Daniel Henrique Barboza To: qemu-devel@nongnu.org Cc: qemu-ppc@nongnu.org, danielhb413@gmail.com, peter.maydell@linaro.org, Thomas Huth Subject: [PULL 6/6] hw/ppc/Kconfig: NVDIMM is a hard requirement for the pseries machine Date: Fri, 5 May 2023 13:34:44 -0300 Message-Id: <20230505163444.347006-7-danielhb413@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230505163444.347006-1-danielhb413@gmail.com> References: <20230505163444.347006-1-danielhb413@gmail.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: pass client-ip=2607:f8b0:4864:20::329; envelope-from=danielhb413@gmail.com; helo=mail-ot1-x329.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, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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 @gmail.com) X-ZM-MESSAGEID: 1683304583632100002 Content-Type: text/plain; charset="utf-8" From: Thomas Huth When building QEMU with "--without-default-devices", the pseries machine fails to start even when running with the --nodefaults option: $ ./qemu-system-ppc64 --nodefaults -M pseries Type 'spapr-nvdimm' is missing its parent 'nvdimm' Aborted (core dumped) Looks like NVDIMM is a hard requirement for this machine nowadays. Signed-off-by: Thomas Huth Reviewed-by: Daniel Henrique Barboza Message-Id: <20230504180521.220404-1-thuth@redhat.com> Signed-off-by: Daniel Henrique Barboza --- hw/ppc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/ppc/Kconfig b/hw/ppc/Kconfig index c898021b5f..a689d9b219 100644 --- a/hw/ppc/Kconfig +++ b/hw/ppc/Kconfig @@ -3,7 +3,7 @@ config PSERIES imply PCI_DEVICES imply TEST_DEVICES imply VIRTIO_VGA - imply NVDIMM + select NVDIMM select DIMM select PCI select SPAPR_VSCSI --=20 2.40.1