From patchwork Fri May 18 21:57:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 136375 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp1762726lji; Fri, 18 May 2018 15:00:32 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqceanmqlvV++oK66yDonlzNzfZbp4XexAItBJ2qmDmZPpveSWHWBeycrYgwxm7lyjoRwic X-Received: by 2002:a37:4d8c:: with SMTP id a134-v6mr10301124qkb.404.1526680832102; Fri, 18 May 2018 15:00:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526680832; cv=none; d=google.com; s=arc-20160816; b=FoyvDuzuaw4BFrv3QsJKfHBVo4uUYoi7TW0mDZQd6ARcLkrCfSCKW+IGwXAYuUvZd1 ylWVAdJT9wObzYwvNn0CJotfErYZbACNQqx+E7l4tOVLhiL0sT4a8piWACGc8oEa6KzB 43vWb0xKoIEJR3bs7SJKuf5VLY0SGtjH3S9qjxKvdheXZvfYLpF4DrSS6ZU2VdPwQrme T0h0tWCg9h5JWIeL5ggnBOO7ycALC2wJnNkxLY4YBLBfJs7QIzvnxHgUjNptki5YNQK3 +wUuSYzCr4J9GKZW/CtqOwy4cAccbkPAoiA1d0ohK9kamL0q7E496TUGEm5OMlCqV2sS vaFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=STgBX3F2/8XZLXjWBiyLorDOCBcXVgz74cYaOmA4Zl4=; b=Hi1gldAIHKSWABAUOnPZL8WqKxKRwo4hh22rJMUrqDwpbBclJ7UH6yUn5CH2nOvvMC 5YIXnoLoCXZbL7Y6DmdQyevAu/mrLozTb01MKX53kZtYaWCUlQKVZN9v7+OXHLgTotVG aWI/X3BlAONWeFZFu9DpDRA4c5Wn3cPoqF4+QaLCotRr1exrlBCqsp7Dbvr0faCn8hJQ yROsrqbVEpq/ub1aKBA8ddbgo4URMqYaSuaq9W2InK4b97nb4gSKcvnfMfJZbwHJv+ld h0t4sM6T3Q9LK836Od6CVrYoECWKnSj3D/tjdFHpVlnDHfAM900yINX/wDD8eLqyhc0d ppDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=BMfWeujA; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id z13-v6si1888479qvl.165.2018.05.18.15.00.31 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 18 May 2018 15:00:32 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=BMfWeujA; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:40999 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJnQN-0001RT-Id for patch@linaro.org; Fri, 18 May 2018 18:00:31 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55319) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJnNf-0000FU-Te for qemu-devel@nongnu.org; Fri, 18 May 2018 17:57:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fJnNc-0003X1-1e for qemu-devel@nongnu.org; Fri, 18 May 2018 17:57:43 -0400 Received: from mail-pl0-x22d.google.com ([2607:f8b0:400e:c01::22d]:46593) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fJnNb-0003Ws-S6 for qemu-devel@nongnu.org; Fri, 18 May 2018 17:57:39 -0400 Received: by mail-pl0-x22d.google.com with SMTP id 30-v6so5293427pld.13 for ; Fri, 18 May 2018 14:57:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=STgBX3F2/8XZLXjWBiyLorDOCBcXVgz74cYaOmA4Zl4=; b=BMfWeujAvKQ0uCb4IiqjXtza1LbbyxRBzlMvfCZBrPSMRQHNZ/LZLJ4mjcPlNtJv4J xYAfkQcv9b4sWBG/ijlCJljENnRg/u77TrCY3NrCOSeykZqBxEQrdvOvD2JxbGHeSG2g bHhrXuAe7mCfpzFbmUzW9u5Dm/ZQ+SME5KHvo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=STgBX3F2/8XZLXjWBiyLorDOCBcXVgz74cYaOmA4Zl4=; b=JmA3X1VZF0sR2ur2jyP65C9NyTHQ0UEAq8S3B0WybGq5M7dt5WOTyyqO6WsarR/oEh 1+mAMnckj4Vm1viJCpzeEM2Ll38uLxh5PVBFrVxwYpm3uqxFRizvWe1HhyOrrmCp0D4n TGcqnqsztM949WaRcBBWduwQqv9yzV6eOIAHLT3048Pg5cti4Z81T6U+uk1FHxIWjiey pLPr7cSlqpxFiKOBwedetiiQWWDUPArspp9qno9pDKx0G7hS7MBIuf7UnyxfLhRJvjIu emz93qs+ho8WFxqlypxj+RqXOnckfTOxFlmxmPlaLiyByL8G0Kj9JEgFTosMCneHp+Z4 qzkQ== X-Gm-Message-State: ALKqPwfF28kwDi/HzO/k5gELq+AEJn70Uq1i83CKmW5sEXPd7/8JjCxz 41cUQwIRLYLMxk8/IbuBmjaoyEawqm4= X-Received: by 2002:a17:902:20c9:: with SMTP id v9-v6mr11133106plg.206.1526680658553; Fri, 18 May 2018 14:57:38 -0700 (PDT) Received: from cloudburst.twiddle.net (97-113-2-170.tukw.qwest.net. [97.113.2.170]) by smtp.gmail.com with ESMTPSA id h8-v6sm10780814pgq.56.2018.05.18.14.57.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 18 May 2018 14:57:37 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 18 May 2018 14:57:27 -0700 Message-Id: <20180518215734.18833-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180518215734.18833-1-richard.henderson@linaro.org> References: <20180518215734.18833-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c01::22d Subject: [Qemu-devel] [PULL 1/8] target/alpha: Honor CPU_DUMP_FPU X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- target/alpha/helper.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) -- 2.17.0 diff --git a/target/alpha/helper.c b/target/alpha/helper.c index 8a6a948572..57e2c212b3 100644 --- a/target/alpha/helper.c +++ b/target/alpha/helper.c @@ -442,20 +442,19 @@ void alpha_cpu_dump_state(CPUState *cs, FILE *f, fprintf_function cpu_fprintf, cpu_fprintf(f, " PC " TARGET_FMT_lx " PS %02x\n", env->pc, extract32(env->flags, ENV_FLAG_PS_SHIFT, 8)); for (i = 0; i < 31; i++) { - cpu_fprintf(f, "IR%02d %s " TARGET_FMT_lx " ", i, - linux_reg_names[i], cpu_alpha_load_gr(env, i)); - if ((i % 3) == 2) - cpu_fprintf(f, "\n"); + cpu_fprintf(f, "IR%02d %s " TARGET_FMT_lx "%c", i, + linux_reg_names[i], cpu_alpha_load_gr(env, i), + (i % 3) == 2 ? '\n' : ' '); } cpu_fprintf(f, "lock_a " TARGET_FMT_lx " lock_v " TARGET_FMT_lx "\n", env->lock_addr, env->lock_value); - for (i = 0; i < 31; i++) { - cpu_fprintf(f, "FIR%02d " TARGET_FMT_lx " ", i, - *((uint64_t *)(&env->fir[i]))); - if ((i % 3) == 2) - cpu_fprintf(f, "\n"); + if (flags & CPU_DUMP_FPU) { + for (i = 0; i < 31; i++) { + cpu_fprintf(f, "FIR%02d %016" PRIx64 "%c", i, env->fir[i], + (i % 3) == 2 ? '\n' : ' '); + } } cpu_fprintf(f, "\n"); } From patchwork Fri May 18 21:57:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 136376 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp1763322lji; Fri, 18 May 2018 15:00:56 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoJZwUFauh/l0A2/KRdFYoXG63YtXBXW7IFadY5uwGhSWYqFu2cB085jDpmbZeiwbg1Kyex X-Received: by 2002:a0c:bd97:: with SMTP id n23-v6mr6770547qvg.146.1526680856871; Fri, 18 May 2018 15:00:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526680856; cv=none; d=google.com; s=arc-20160816; b=CvTPPSD40jtsFNkehqLI9azXa+90LnRCpuvSJsuk3+EtWneykXWOtY9eFKOqgjyj1r EBWO4ZBSeh28gQqKLXrWpHc4X/bKkqcrHH9ldhufAp//GkjCDg8yLmYuJoWneEmJdkAJ y6YOsfwvytGcOdAaL8AHPX1RfFxcQvLOu7UwP3YMkOq5thvHB9X2Nf9uANzUQGfBX0rY lf2vnMMpmkOVX5hR/lEuMLy8DETNcGK43URziRPdS24MWXhzbaSPYPyTAE4RyXc29fdD X5PDSncDnPsK3z/y+lYKU6Eyl5eriHPJd7lhrvF6JrbRMpkTSQfzBZ2kZMJz3HGof26g ANug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=Mnk1otYYKGW50XEMJpFlx5Pfsy5bSn7kSyvoC3ACZXY=; b=NsS0OpopLxG4rHyCFypqGDiJgz8+XvUIFLtKK83IggExH5R1b4sOin624tYn9w9eg+ W8gvB4O0a0b2vzGoFai8Le7M3zJXVTZICcoc+sNB9fCsMsdHELib9/cFNGLIuhx819ic 7SLNv5YuTPHeA94nx/FNkZNojPA+liNWIqSkbB3ldbLXk+1urBRpL/6JlrC0CFiOt+l6 GWZTqlxI6+huM2k03hVzBek8ahA7Qwk76I2j0Xs7S3WshbsPnHG+KQCt3plXgqUmYWTO 2dbuvqv1M/J4c+vRykvf6DWuGU3l1ETQriudks7G1ccF+TsG/H99LGuPHyyS0mrjDs/W D+ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=KSjEeGPa; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id h15-v6si1139263qta.333.2018.05.18.15.00.56 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 18 May 2018 15:00:56 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=KSjEeGPa; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:41007 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJnQl-0003M0-7T for patch@linaro.org; Fri, 18 May 2018 18:00:56 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55320) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJnNf-0000FV-Tr for qemu-devel@nongnu.org; Fri, 18 May 2018 17:57:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fJnNd-0003XJ-PW for qemu-devel@nongnu.org; Fri, 18 May 2018 17:57:43 -0400 Received: from mail-pl0-x236.google.com ([2607:f8b0:400e:c01::236]:34848) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fJnNd-0003XA-JX for qemu-devel@nongnu.org; Fri, 18 May 2018 17:57:41 -0400 Received: by mail-pl0-x236.google.com with SMTP id i5-v6so5318997plt.2 for ; Fri, 18 May 2018 14:57:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Mnk1otYYKGW50XEMJpFlx5Pfsy5bSn7kSyvoC3ACZXY=; b=KSjEeGPac+XZJqH1v9Co9qYv2BtOJ11E5Iia0wV9jIfKAOytLf9HQz9PZKf4vRQTDe UPpMjVxKTmr4zAbezlcpImjWJrTK+d68a3HReITs3oz0SmOUTcZrci+gl9pYyZvRBOnc sSQOULqXVd5XyEF2filDmcM+6kQ1grBG1u9Io= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Mnk1otYYKGW50XEMJpFlx5Pfsy5bSn7kSyvoC3ACZXY=; b=uh+oHdZTtfZN+7mTRrwe4e1DhClT85xpgF1GQU9JcbLOHL4tCvs8PVJIy1sA+rXqg3 VmiFEKGLMNyEYyZRoG+CPPX10QUx/2uF1JQCfPQZj5R4agU8lX1vlCUDOX3qOdzjdK85 z1b471BCwdukcV3LxZytXhLYYqRO/IKeZBFPUnjtI1KXy5cANt/68GdYeZXtgLI7mheA vaAmKV66jZBsNpTAHGkYjuuVlbH+5+1q3nazVSL6sItLnwPH/9OILNil4xoXCmtoOm5h 8KMqC5BUpNFrVzGUVjm7MeK2vodUnWbfoGKLqi7lGVcAM3VTTZen3UXGWeWgJY01eC91 /Dgg== X-Gm-Message-State: ALKqPwcIZQ6nPbjmTwP69JZykR7VsvJJXB/CUA8BU5dWnUOfptoV3QWJ eLKlePCgtjckITMqVwI0pSgvISaaXu0= X-Received: by 2002:a17:902:76c3:: with SMTP id j3-v6mr10925347plt.15.1526680660251; Fri, 18 May 2018 14:57:40 -0700 (PDT) Received: from cloudburst.twiddle.net (97-113-2-170.tukw.qwest.net. [97.113.2.170]) by smtp.gmail.com with ESMTPSA id h8-v6sm10780814pgq.56.2018.05.18.14.57.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 18 May 2018 14:57:39 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 18 May 2018 14:57:28 -0700 Message-Id: <20180518215734.18833-3-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180518215734.18833-1-richard.henderson@linaro.org> References: <20180518215734.18833-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c01::236 Subject: [Qemu-devel] [PULL 2/8] target/mips: Honor CPU_DUMP_FPU X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, Yongbok Kim , Aurelien Jarno Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Cc: Aurelien Jarno Cc: Yongbok Kim Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- target/mips/translate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.17.0 diff --git a/target/mips/translate.c b/target/mips/translate.c index f1c1fdd35c..e88f983ae7 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c @@ -20446,8 +20446,9 @@ void mips_cpu_dump_state(CPUState *cs, FILE *f, fprintf_function cpu_fprintf, env->CP0_Config2, env->CP0_Config3); cpu_fprintf(f, " Config4 0x%08x Config5 0x%08x\n", env->CP0_Config4, env->CP0_Config5); - if (env->hflags & MIPS_HFLAG_FPU) + if ((flags & CPU_DUMP_FPU) && (env->hflags & MIPS_HFLAG_FPU)) { fpu_dump_state(env, f, cpu_fprintf, flags); + } } void mips_tcg_init(void) From patchwork Fri May 18 21:57:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 136373 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp1762544lji; Fri, 18 May 2018 15:00:24 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrkTzIcx7tHOoDFOjMNCOUH8Rwlm/t+luX1h1VQVozjDJnW0fvK6yhzxGj2NV4h1Re2exC8 X-Received: by 2002:a37:9dd4:: with SMTP id g203-v6mr9992231qke.188.1526680824626; Fri, 18 May 2018 15:00:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526680824; cv=none; d=google.com; s=arc-20160816; b=zMu4/nj4yRSmLmlFHtK/0xeu2VOqZZFfgoLEoyTdV7CPvZ9up8Xqj1dKBmRObeBvQm RB7Pk/JesADC7sRET5xH3ax3SomNZTANWc4d0j2qxYk3lfXypg2LaNmfnje/2Si2+lAA B7HpugR0XQXRyRaGFjx/0G0UtlwgE979iuFoVe5G5+PN8GlXWP7k3t3ICu6IYt7kjG53 Y26EnF1b5EuF+AHntbzJmHvlQ3hxhLUvL3dXtf2ntbarLcjciFZLF4tJv2CVp7r3qr0s pt42tgacYEVrtmxWlWBuV3gjZ63Fo+mEHhNN23KWCWWfcVwdsDthyeSBz+2YkaADM7gR hLcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=lHJR68CPJRWk2IbUp2yAlkCNZJabBOnOUaj/36kp3cE=; b=dBU6t1VpcXy+GuO5VUOHrIHaOsLN9gasTkm372i9czL+QdR9r/+L2TDJSoktgTUImf mZ6bdNQ6vCAQ3c37yxrpeu3WswbQ94Vz1d83bBkNTDMiGF+GKsNHuZaSJvC8obyRHZo5 Y8FnzxOqgd6vCSFRntfPDekKRTyB0SP5qaBtvcu17K1tyZzbOxA3tj7/Jqlltc9Xvebr 6XW56pSU9iiGAyi3jUHd4+GS0qlnyt4D84Rt2TIakXnhgS+rm7PQ/xmZ6AIPG+2c+7rP kOwhpb5DQ0imZEceLTgawwgvdBOv3bktSq0MWJyNg1di5/PS5TXSsxG+BxThw6tO3wgs sf0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Vtu83vA3; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id f15-v6si2135391qkm.26.2018.05.18.15.00.24 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 18 May 2018 15:00:24 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Vtu83vA3; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:40997 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJnQF-0001N8-Di for patch@linaro.org; Fri, 18 May 2018 18:00:23 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55327) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJnNg-0000FW-9y for qemu-devel@nongnu.org; Fri, 18 May 2018 17:57:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fJnNf-0003XY-4Q for qemu-devel@nongnu.org; Fri, 18 May 2018 17:57:44 -0400 Received: from mail-pl0-x22e.google.com ([2607:f8b0:400e:c01::22e]:37278) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fJnNe-0003XS-UU for qemu-devel@nongnu.org; Fri, 18 May 2018 17:57:43 -0400 Received: by mail-pl0-x22e.google.com with SMTP id w19-v6so5311674plq.4 for ; Fri, 18 May 2018 14:57:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=lHJR68CPJRWk2IbUp2yAlkCNZJabBOnOUaj/36kp3cE=; b=Vtu83vA3k1U7xvDlAVv6hIYANsrDdg0gtmUbt0gyNC4RCDYqeAKR1C8Cbq2l4nAhwD P0+/DlKUxYzZ4wffMoBHnNumXCf9XfqCQasIWH+uDlVz2CSPJnQdtR81MPhvBVwF5cPG RJshsc9rnTvkPoBT8tPEen5Hg24BmXdHceFZM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=lHJR68CPJRWk2IbUp2yAlkCNZJabBOnOUaj/36kp3cE=; b=YGPzqGmyK98QUxOsmAiVkXTQL+NIy1gIejZjutKhco1mALTJA8E/NhvplaeHU4GL2E nCh+BEX9SmJXdBNUbseeNGbn6lXwptljT8sTHhD+QxOpACx0sxqi4xRaLrELhgSu2zWc uZkpGkT3k6kkwaJjcYPL2anRlknheLdedMfKjPm313/LPv1Yt29DpWhjSorslE+6tKOo UpaZx0N8mygCrc/LclsVgsJC57C5HOT9aLeydkAzCoayA1L4QGVWPwaEkFSibqL9qWCE xyz5K7fzva/xyiWaZJQNKoP6x9xbijri2r3m4SmYxAzLfYCg0aKH+MzTeVFCS043nk1Y 9AIA== X-Gm-Message-State: ALKqPwd9eQ/O+2EbCVIJzBjoqwiezy4frgcmW+nawx7c5I7l7be9XRoo d61ZWHaGJvjR9+TY3gJBnB/jiRuJJRo= X-Received: by 2002:a17:902:5610:: with SMTP id h16-v6mr11076976pli.140.1526680661571; Fri, 18 May 2018 14:57:41 -0700 (PDT) Received: from cloudburst.twiddle.net (97-113-2-170.tukw.qwest.net. [97.113.2.170]) by smtp.gmail.com with ESMTPSA id h8-v6sm10780814pgq.56.2018.05.18.14.57.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 18 May 2018 14:57:40 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 18 May 2018 14:57:29 -0700 Message-Id: <20180518215734.18833-4-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180518215734.18833-1-richard.henderson@linaro.org> References: <20180518215734.18833-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c01::22e Subject: [Qemu-devel] [PULL 3/8] target/ppc: Honor CPU_DUMP_FPU X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, Alexander Graf , David Gibson Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Cc: Alexander Graf Cc: David Gibson Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- target/ppc/translate.c | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) -- 2.17.0 diff --git a/target/ppc/translate.c b/target/ppc/translate.c index d5e5f953da..e30d99fcbc 100644 --- a/target/ppc/translate.c +++ b/target/ppc/translate.c @@ -7048,14 +7048,20 @@ void ppc_cpu_dump_state(CPUState *cs, FILE *f, fprintf_function cpu_fprintf, } cpu_fprintf(f, " ] RES " TARGET_FMT_lx "\n", env->reserve_addr); - for (i = 0; i < 32; i++) { - if ((i & (RFPL - 1)) == 0) - cpu_fprintf(f, "FPR%02d", i); - cpu_fprintf(f, " %016" PRIx64, *((uint64_t *)&env->fpr[i])); - if ((i & (RFPL - 1)) == (RFPL - 1)) - cpu_fprintf(f, "\n"); + + if (flags & CPU_DUMP_FPU) { + for (i = 0; i < 32; i++) { + if ((i & (RFPL - 1)) == 0) { + cpu_fprintf(f, "FPR%02d", i); + } + cpu_fprintf(f, " %016" PRIx64, *((uint64_t *)&env->fpr[i])); + if ((i & (RFPL - 1)) == (RFPL - 1)) { + cpu_fprintf(f, "\n"); + } + } + cpu_fprintf(f, "FPSCR " TARGET_FMT_lx "\n", env->fpscr); } - cpu_fprintf(f, "FPSCR " TARGET_FMT_lx "\n", env->fpscr); + #if !defined(CONFIG_USER_ONLY) cpu_fprintf(f, " SRR0 " TARGET_FMT_lx " SRR1 " TARGET_FMT_lx " PVR " TARGET_FMT_lx " VRSAVE " TARGET_FMT_lx "\n", From patchwork Fri May 18 21:57:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 136374 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp1762624lji; Fri, 18 May 2018 15:00:28 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo/pqINYiNbGEvW5LLgMDsaSdRdxpUhah7OzbWVP0/UTjva+uK0EMhgbUaMaunasR5M5W81 X-Received: by 2002:a0c:ad90:: with SMTP id w16-v6mr10491527qvc.186.1526680828231; Fri, 18 May 2018 15:00:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526680828; cv=none; d=google.com; s=arc-20160816; b=ZHZsnW/Yzp2rM3Ys7y3qVvKNHRIn+8jfWQ51W2qa6mhTilZC2OMyp2LUn+cNmggyKK q58B8Tmlnw4DjC0+cIo4tvr9UOjBQFJneYHl956FyW9vGJb4SSkQOcqC0dGyP5Yafq+O FNjUcSdfxaMqc999/BKajYqSFGDVD0qVEfojjXOofBNW7jESDfBKB68RtqqT2gO5l5oL S8qsXmEiHuf4Vpj0ALqYQOm5GYTvnTVeuVVXcbMfzj2sM+fxToGOj8VEAXqdFUF4kgXh /DcQlDKm4KRvgygK5rtmZJqWqhJAPY7uSHXWTY+eNauwoqSYh8KrNQzmJ5WiQxZmJt7w fD6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=dV358W01yp4pLzhn9IyhFE+0mDzmrJptsmL54IVwF/8=; b=k32leFIMoWzAQVkfrfEv0rW+niu7HCFVIuTekPz9YASukcYvoS8Xvs5qlxsoUjoUAu 5h8ZL8XxoIXfbZJZuDdboto1tmH/QFzpUgevPaV03Wbq1VeiRbPZjbaT6eZTTEhbc0h4 OYj7h9hH7BvaxS9+lfwWp1LiBcf06PgLoOR13yKj9eMBOfIiHP/OAP20Kpfk/hoHJCMi HYMDk6kXEumULy5Gs2P3nuWA0Ts0yoYmqMIPZv6v6UKn+Ygj1Z/CiP60ZtuEJnSe1nWG 3+oGp+guosoTL5r4jUBY/8obAxO0kR8S2gfp6fqrGNVGY8AKnRwWWRUkFqjGYMS9KQjw FpkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=euGLhdxR; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id x40-v6si8496963qtb.244.2018.05.18.15.00.28 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 18 May 2018 15:00:28 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=euGLhdxR; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:40998 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJnQJ-0001Q9-L4 for patch@linaro.org; Fri, 18 May 2018 18:00:27 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55343) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJnNh-0000Fl-84 for qemu-devel@nongnu.org; Fri, 18 May 2018 17:57:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fJnNg-0003Xv-7g for qemu-devel@nongnu.org; Fri, 18 May 2018 17:57:45 -0400 Received: from mail-pl0-x22d.google.com ([2607:f8b0:400e:c01::22d]:39664) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fJnNg-0003Xi-2C for qemu-devel@nongnu.org; Fri, 18 May 2018 17:57:44 -0400 Received: by mail-pl0-x22d.google.com with SMTP id c19-v6so5311903pls.6 for ; Fri, 18 May 2018 14:57:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=dV358W01yp4pLzhn9IyhFE+0mDzmrJptsmL54IVwF/8=; b=euGLhdxRTAkXKX9IrPA6uLoszz91LtK8xw/fWf7BMc/KlOhRlFVbvUaWjZ2IT+yiJ+ 8a3v5IrySmhUkMg3cysUQTc4/b2lftkYDmTGJFhhdlmfG3E5DTjpCcOYa2JHQd6Xwk5d 5uii3wyEdhCZOpkxx/vul5W1uHdwin4yzyJUo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=dV358W01yp4pLzhn9IyhFE+0mDzmrJptsmL54IVwF/8=; b=McsZwJPWhusAEaSYXBtxDCjOBhCY9tGewEBfRejHTyxPfOteHoK6cQTBeo/9dToY0p lr8fzbjAWtOBCOJxnEWglEnVkbOwrQwBv+bsaPQzf7PJalSFmnmy39QXi2PtmIyb2Ovs TOmGtI+M7er6IzaH7/Vgijpv/NXEBCEPgbF8yZM2nHDQW3arYaRYvGTk6R/j+suGxlGW htCX41lzp+888ITR28APoBBK51N0QunSktEKRcjQVD3cjk/A2N8vX6saZKtqekFgtpPH XUy8nm8X2nE3moA6xVV3UzJUP8e6n12lFk9rQUo5b0vEoqEGd2OmN3J7hja5IdJnuiw1 ovKw== X-Gm-Message-State: ALKqPweZZqnIeoo3EyjmroapNREBfviaNPZetytIHm3Ed3l3c3O4GDCr 1tUSwf8DUzhbyTSK5/sS7c2xd4OZ0qM= X-Received: by 2002:a17:902:5a1:: with SMTP id f30-v6mr10865329plf.167.1526680662782; Fri, 18 May 2018 14:57:42 -0700 (PDT) Received: from cloudburst.twiddle.net (97-113-2-170.tukw.qwest.net. [97.113.2.170]) by smtp.gmail.com with ESMTPSA id h8-v6sm10780814pgq.56.2018.05.18.14.57.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 18 May 2018 14:57:41 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 18 May 2018 14:57:30 -0700 Message-Id: <20180518215734.18833-5-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180518215734.18833-1-richard.henderson@linaro.org> References: <20180518215734.18833-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c01::22d Subject: [Qemu-devel] [PULL 4/8] target/riscv: Honor CPU_DUMP_FPU X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, Palmer Dabbelt , Sagar Karandikar , Bastian Koppelmann Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Cc: Palmer Dabbelt Cc: Sagar Karandikar Cc: Bastian Koppelmann Reviewed-by: Michael Clark Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- target/riscv/cpu.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) -- 2.17.0 diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c index 4e5a56d4e3..d630e8fd6c 100644 --- a/target/riscv/cpu.c +++ b/target/riscv/cpu.c @@ -219,11 +219,13 @@ static void riscv_cpu_dump_state(CPUState *cs, FILE *f, cpu_fprintf(f, "\n"); } } - for (i = 0; i < 32; i++) { - cpu_fprintf(f, " %s %016" PRIx64, - riscv_fpr_regnames[i], env->fpr[i]); - if ((i & 3) == 3) { - cpu_fprintf(f, "\n"); + if (flags & CPU_DUMP_FPU) { + for (i = 0; i < 32; i++) { + cpu_fprintf(f, " %s %016" PRIx64, + riscv_fpr_regnames[i], env->fpr[i]); + if ((i & 3) == 3) { + cpu_fprintf(f, "\n"); + } } } } From patchwork Fri May 18 21:57:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 136379 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp1767242lji; Fri, 18 May 2018 15:04:05 -0700 (PDT) X-Google-Smtp-Source: AB8JxZogH5IyAvgYhC61nkq4Qd0c9JUSW0ltl1EWZdTmi1RoluPh+l9zU+BFiNcr/qa7DCzMURPn X-Received: by 2002:ac8:36d:: with SMTP id w45-v6mr11187587qtg.149.1526681045682; Fri, 18 May 2018 15:04:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526681045; cv=none; d=google.com; s=arc-20160816; b=ahMidFdZKeK0L8cRbQ3Zy5FWEHynj0PNVIuG2u9nMT5MdHM6Mh5Qb6AAR4CEKCrKsQ 1ILnHRlosYqFoVFkJGQsbMFifDE9bkqbyWzYb05x+XYjicX69WM930W9I2MwT99PhOUh FVUlIOuwJlW1V0FbPVHDcOUPzY1MVmVYhnNi3la/kvXL6gfndr3zLkyc2LxjFLCWWb9z tETA1Gd38i22KV6+FEbpATTE1ThLeSuFxBkE86UKj41BHFuJy6G9KNEF9SjCd8rZbZL+ Yg8j+OCz/z0A5fnXZlsg/r5sOAM/qTqPGPAziQAwm5E+qMnprjWDGno0wDQxiEqwQjei dH7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=7hGW8vpnqWdMjjxasbxw2llw0JJWisaRtTCKXIWJxv4=; b=SJevgPtI9zcowI5qA2pxTfdJTDQFcbBhMiC6xX5pYUBiaxlZkrvLScUSE8NajmdZoW L/A69CqcJMoO3N5dBKZ2E+2PDZqZG+Mp2CfVz1Itu3apsW0KrOSaAvifXFu1inYCzreC KJtsr20zMz8VOv7zzOwZndf/wiEFHrB6RdOywu2z8d5e5L0AcHD+CCRO5i5VvFhvvqqx UGaNpUPZTRtN5QWOMDS319aFM9CSm6xNCncaERdkCyVRrvHdPBV2iui76GKQxrjc1YOh lvFv89OuVSFNr5t8KkodLjZ4LWpnwYQjpGl+gGED5SCuY9rSjHx5muOO4SQ4/CFPsUub UjfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=LFw10Goi; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id v89-v6si4029151qte.69.2018.05.18.15.04.05 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 18 May 2018 15:04:05 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=LFw10Goi; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:41025 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJnTp-0005qp-77 for patch@linaro.org; Fri, 18 May 2018 18:04:05 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55354) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJnNi-0000H4-Pz for qemu-devel@nongnu.org; Fri, 18 May 2018 17:57:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fJnNh-0003YU-Os for qemu-devel@nongnu.org; Fri, 18 May 2018 17:57:46 -0400 Received: from mail-pl0-x242.google.com ([2607:f8b0:400e:c01::242]:46842) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fJnNh-0003YF-J0 for qemu-devel@nongnu.org; Fri, 18 May 2018 17:57:45 -0400 Received: by mail-pl0-x242.google.com with SMTP id 30-v6so5293553pld.13 for ; Fri, 18 May 2018 14:57:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=7hGW8vpnqWdMjjxasbxw2llw0JJWisaRtTCKXIWJxv4=; b=LFw10GoijB2/y4dVURoKSY5HOJMpY57i/iOno4nD3+3KIXnGnyp4UhWumijSPaT+zz +t4ReABRFJfa/Vho0q184j1/FOxxZMAd67ktYvXhZC+Q9u0/WrX+DSotDWGQf6Cr5ugQ HDbUwgWiUnWEJvdVZJsKo0qEhCojIe7R2ecss= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=7hGW8vpnqWdMjjxasbxw2llw0JJWisaRtTCKXIWJxv4=; b=QLi7OMKd0UUy6VJfW76AMrThAnqj4C+iUSUFuipkTdxZ0+nPBlqHKQV8P0ajasXRsL bOuEXP/5dNpEHXoYPe8rXYPbs88aUVvtMeaJU0H6rkePt2xDDyPEjRcy+zIr1mYlS3iU tYS/jK423CHxGFEkAJRSJq7GTXG8/WEv0duaK0181z1UX0YJhDf2ECeABNhaI63hdTT0 iOwKoKvCB6P68wH4Qrr9iyZvRuZL3L8WQwmUSBh3telfYVql0QPo8RNwaElEKRw2poVe svgZU+xb3DhfzW9AI9Z7qZpzCs96NBEDYNVzyfC8aaFSSFc1NfX5wyVJ6hKZY9MaOjkR k64w== X-Gm-Message-State: ALKqPwf9V552xnU87jM8dkOaAbn8oNLBjNBFzEVUfPHiNCH85roxQaqe yD4GQyVrqL/GeLPPY0CZf5o8hBTEFAw= X-Received: by 2002:a17:902:42a3:: with SMTP id h32-v6mr11240189pld.72.1526680664218; Fri, 18 May 2018 14:57:44 -0700 (PDT) Received: from cloudburst.twiddle.net (97-113-2-170.tukw.qwest.net. [97.113.2.170]) by smtp.gmail.com with ESMTPSA id h8-v6sm10780814pgq.56.2018.05.18.14.57.42 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 18 May 2018 14:57:43 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 18 May 2018 14:57:31 -0700 Message-Id: <20180518215734.18833-6-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180518215734.18833-1-richard.henderson@linaro.org> References: <20180518215734.18833-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c01::242 Subject: [Qemu-devel] [PULL 5/8] target/s390x: Honor CPU_DUMP_FPU X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, Alexander Graf Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Also do not dump both "fpu" and "vector" registers as the former overlaps the latter. Cc: Alexander Graf Reviewed-by: David Hildenbrand Signed-off-by: Richard Henderson --- target/s390x/helper.c | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) -- 2.17.0 diff --git a/target/s390x/helper.c b/target/s390x/helper.c index e8548f340a..fd5791f134 100644 --- a/target/s390x/helper.c +++ b/target/s390x/helper.c @@ -327,21 +327,22 @@ void s390_cpu_dump_state(CPUState *cs, FILE *f, fprintf_function cpu_fprintf, } } - for (i = 0; i < 16; i++) { - cpu_fprintf(f, "F%02d=%016" PRIx64, i, get_freg(env, i)->ll); - if ((i % 4) == 3) { - cpu_fprintf(f, "\n"); + if (flags & CPU_DUMP_FPU) { + if (s390_has_feat(S390_FEAT_VECTOR)) { + for (i = 0; i < 32; i++) { + cpu_fprintf(f, "V%02d=%016" PRIx64 "%016" PRIx64 "%c", + i, env->vregs[i][0].ll, env->vregs[i][1].ll, + i % 2 ? '\n' : ' '); + } } else { - cpu_fprintf(f, " "); + for (i = 0; i < 16; i++) { + cpu_fprintf(f, "F%02d=%016" PRIx64 "%c", + i, get_freg(env, i)->ll, + (i % 4) == 3 ? '\n' : ' '); + } } } - for (i = 0; i < 32; i++) { - cpu_fprintf(f, "V%02d=%016" PRIx64 "%016" PRIx64, i, - env->vregs[i][0].ll, env->vregs[i][1].ll); - cpu_fprintf(f, (i % 2) ? "\n" : " "); - } - #ifndef CONFIG_USER_ONLY for (i = 0; i < 16; i++) { cpu_fprintf(f, "C%02d=%016" PRIx64, i, env->cregs[i]); From patchwork Fri May 18 21:57:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 136377 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp1766869lji; Fri, 18 May 2018 15:03:46 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpCNEI2brHrhGlas8HO5HfLZWoX1cmol8tJHiFh9DkmDoxiIGlGjyG6Bl4FtfLXiD3VQ8p0 X-Received: by 2002:aed:220a:: with SMTP id n10-v6mr7437661qtc.330.1526681025949; Fri, 18 May 2018 15:03:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526681025; cv=none; d=google.com; s=arc-20160816; b=ts90AHYyU7FZ2HOSKh6WhOe2bHbhLLT6ub+4bK3lpkkJjThHK1/1lVqgO1oongM1ya Mwksfgzfv7f3PISKeqrnEZQNHM0n2CJd5zY0DiDsrHSAmJipGzGI4ztX5klF3k8ldFg9 FEyk4S1ZpWRctQTYys+MeWcreiHuJiz88eY5M9kWLYkLKXB4vxw97Qu/EOar1SxKh7/j XSSnSHzAQ4+KKEJ54vrlHixY7EuI5Qm+5KvOlpz5y2G/QE90nkkj/MJetGROdSLMfBhs 9mTvxgxrbOr2g1Cu3zNmNSGyaZfuxMDhZbmc6T4PDW/jPRKmdmivpIBgtiFf/d6gne+4 2JkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=n+kdM7nowHozKU+u9m4ymzWrvEBy6tLDOGHpr1dMhqk=; b=IT7YO2S1Oj4wGRrngzIxBGv6QuTMmYyjdvZTvF2GY6PAeGoa/wIDHlXREY+/u35s28 dCREtMO5XLjBa7aR9aRe8IYtAz2P9NYLRitiykdwDdO3rbl/OAqQt0zWDnHFfyRhVoPt 1YVVl7UyqwhjSGaPLS+9ixPv7kUer+jG+XktlmThrVIIGkPyt6IKHC7S6m2a+wM2gKJV cHFNL6nua0qOlEWEoDGapMcb+TjqgvIfpmlrnqGyk60LSDGdlF5YccRS1vgyhzcprnA/ JvUCnJl0+GQ7V8j0LAw9/LHwzspfsSeoXtvaxJZkVqsuFGi6evO3SlR2OmZeOp5DaS2p U7Kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=gCNyPeKz; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id j95-v6si2153490qte.335.2018.05.18.15.03.45 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 18 May 2018 15:03:45 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=gCNyPeKz; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:41020 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJnTV-0004aB-AI for patch@linaro.org; Fri, 18 May 2018 18:03:45 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55365) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJnNk-0000Ie-8o for qemu-devel@nongnu.org; Fri, 18 May 2018 17:57:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fJnNj-0003Yr-Dr for qemu-devel@nongnu.org; Fri, 18 May 2018 17:57:48 -0400 Received: from mail-pl0-x231.google.com ([2607:f8b0:400e:c01::231]:37281) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fJnNj-0003Yh-85 for qemu-devel@nongnu.org; Fri, 18 May 2018 17:57:47 -0400 Received: by mail-pl0-x231.google.com with SMTP id w19-v6so5311753plq.4 for ; Fri, 18 May 2018 14:57:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=n+kdM7nowHozKU+u9m4ymzWrvEBy6tLDOGHpr1dMhqk=; b=gCNyPeKzT8yIxfLPWEW1ENFty1M+h0kccgAb1HW0GNYOSzQLDMiF7bfT4B0rPGo6Of 1LwoBKuqwjwIOwF6KnKu43eyWRIEj3+/m/sh2HRIqPqqdsJwAL9iOeU+EyDGOwtgUiIu gC5qhqhcvc5zcEcFBRNdmKsiAIuIkbV9Amr5w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=n+kdM7nowHozKU+u9m4ymzWrvEBy6tLDOGHpr1dMhqk=; b=EZUEJiRCAbUKSFSM8RCaazBm9fI7N9965k2My5bE8IWbm5Du4sPk5qCaxWtKqrzY8X 6FM2ohXyW0VUQhFm1PsnRh+YYw4dTDcIBYoW5gp4PJsPDkcD/EEA0JRFGz06LsC5nMpz BnFaGfHDRBGMx/CYKPTtouoWQtSigJO6guqTl0GBGXqFRgZRCP0CZsi7PlMpUs3AbTGd PTdLoRlF7kbDn1gvAZ4jOvNgGPIlK7dw1rePcDYAKWGpMiDeNnbasoyHygniWotLlubl pZCtb9QoR4oil4K5DfftwEYRr+68ifTUNW2R0AClYgykF+PGZsSjsewosOC11Zkanz7E B38Q== X-Gm-Message-State: ALKqPwcu4Q4LbCoTSCkzxmV1dr3ONRzPgv3aqEGL386/vS0KpSV2Z4uD 3BPPozapC1o4LaZaSo4FN+rF7svciyo= X-Received: by 2002:a17:902:aa95:: with SMTP id d21-v6mr11021405plr.73.1526680665879; Fri, 18 May 2018 14:57:45 -0700 (PDT) Received: from cloudburst.twiddle.net (97-113-2-170.tukw.qwest.net. [97.113.2.170]) by smtp.gmail.com with ESMTPSA id h8-v6sm10780814pgq.56.2018.05.18.14.57.44 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 18 May 2018 14:57:45 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 18 May 2018 14:57:32 -0700 Message-Id: <20180518215734.18833-7-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180518215734.18833-1-richard.henderson@linaro.org> References: <20180518215734.18833-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c01::231 Subject: [Qemu-devel] [PULL 6/8] target/sparc: Honor CPU_DUMP_FPU X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, Mark Cave-Ayland , Artyom Tarasenko Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Cc: Mark Cave-Ayland Cc: Artyom Tarasenko Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- target/sparc/cpu.c | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) -- 2.17.0 diff --git a/target/sparc/cpu.c b/target/sparc/cpu.c index ff6ed91f9a..0f090ece54 100644 --- a/target/sparc/cpu.c +++ b/target/sparc/cpu.c @@ -647,15 +647,18 @@ void sparc_cpu_dump_state(CPUState *cs, FILE *f, fprintf_function cpu_fprintf, } } - for (i = 0; i < TARGET_DPREGS; i++) { - if ((i & 3) == 0) { - cpu_fprintf(f, "%%f%02d: ", i * 2); - } - cpu_fprintf(f, " %016" PRIx64, env->fpr[i].ll); - if ((i & 3) == 3) { - cpu_fprintf(f, "\n"); + if (flags & CPU_DUMP_FPU) { + for (i = 0; i < TARGET_DPREGS; i++) { + if ((i & 3) == 0) { + cpu_fprintf(f, "%%f%02d: ", i * 2); + } + cpu_fprintf(f, " %016" PRIx64, env->fpr[i].ll); + if ((i & 3) == 3) { + cpu_fprintf(f, "\n"); + } } } + #ifdef TARGET_SPARC64 cpu_fprintf(f, "pstate: %08x ccr: %02x (icc: ", env->pstate, (unsigned)cpu_get_ccr(env)); From patchwork Fri May 18 21:57:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 136378 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp1766972lji; Fri, 18 May 2018 15:03:51 -0700 (PDT) X-Google-Smtp-Source: AB8JxZptDJiRRPbHzTGVwSLP2rC4hccS/JNsgieCvipcJ1pYBF1MPc4yPKeWJeUxGt+zTO69/LDf X-Received: by 2002:ac8:3748:: with SMTP id p8-v6mr11039801qtb.47.1526681030963; Fri, 18 May 2018 15:03:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526681030; cv=none; d=google.com; s=arc-20160816; b=kOepUzSYKTayZSvstsiLMZnFZy008vHPy6skYdFxpDKEzJhTdnchtNwjPOvqi4Zcy+ Qhjd5BfhfO3UcJtCC5fVTC1WUGQvOy/UtFAT1r+xS/HFVWx6i1w+iuT5Xw8k/Otlr9Mh T4ODUKrxmhiAXPJ76EnCg/6lHvS8zsV+eQW2doFmDFhMUi7Acsdx2YQFnxoQc4xGn84h JccykSgLzaYXN/Yq2D/fRGjbIb6TBp8kdoIgoAfAhZrkiwSdVoXofeu9ICqrZbfDv3fR 930v7PYHTJCWFw2e1HBrVMRreckybV2EGYKe6kC8Sg4x1pagwFVPIgPT2K9yIIFThAII Id9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=xtBmp0z2yZBoI+q20c8s9Q66roOmuGBnhqmjWfpcarg=; b=mx07kfP16W1BH0hafOT7KWr3150Xf6vOnsHNey7v7upoYE28cQEBELcDxO+hx/JCEi lzVBSQK1Wje0VZhe/3s9TTGj7uyZCdt1byktmHOsdRDUMOlBAc44FfYAjNkRKbCnvbVi Grh0hwHyM93cJI/O9S67H07jqLkXqyb5qd/j+z1plG/1pr+urzhCPvnj0X9W45jypMr7 /FugoBssPA7uEzf63YuA/CjZESr7AeUE0UNr/IOib79fJ5zPI3OiPLH7/C/3LsWXmvGx FD1SxYgrc2F7cBT5Nos7Abrf5ZsOXotIodggYD2jZBhoewj5DWJnBCj5r3Dmi9dDfIDt hLGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=DwyveICr; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id q27-v6si3024922qtj.288.2018.05.18.15.03.50 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 18 May 2018 15:03:50 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=DwyveICr; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:41021 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJnTa-0004fy-DV for patch@linaro.org; Fri, 18 May 2018 18:03:50 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55377) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJnNl-0000Kd-Oa for qemu-devel@nongnu.org; Fri, 18 May 2018 17:57:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fJnNk-0003ZM-P7 for qemu-devel@nongnu.org; Fri, 18 May 2018 17:57:49 -0400 Received: from mail-pl0-x243.google.com ([2607:f8b0:400e:c01::243]:37216) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fJnNk-0003Z3-Jm for qemu-devel@nongnu.org; Fri, 18 May 2018 17:57:48 -0400 Received: by mail-pl0-x243.google.com with SMTP id w19-v6so5311779plq.4 for ; Fri, 18 May 2018 14:57:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=xtBmp0z2yZBoI+q20c8s9Q66roOmuGBnhqmjWfpcarg=; b=DwyveICrcAiJXGBq5s6WhMVkvbCjAdvK/uTLLKsAi0v2AIr54M94KPax8zSNy5Q0rB Xpjof3Zw4imVdirbWF2XvLt1BEu0N2dOlUTY6UbuOalItBq7XG4wkUAhDg1MLbE294Qq TWQgL9SGTHpveKhuvNgx7kn65Pg4otsXUS3r0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=xtBmp0z2yZBoI+q20c8s9Q66roOmuGBnhqmjWfpcarg=; b=H+dqQkDm2Gn7yRgsQF9gtF+8XR5VYJYKgKZAjPdZfW7fK9/unRWH0koNnyOioJmST3 AX6AWUmhfjoUuuVxboQgDIKSpqZ2OUs5urOkzQxAe1ICgXjuFSX0KJ4leWfm8c8jVNw6 6ZqtXzu9c9hWxQG9eHKoHLvZYt+Fo9LFBl6yKGxEgeg9M3Um3eHPxIqDRqDyj/Xw/51a lLZc+x0dqIltKvDqytVRlxt2FoNzNVt3+uoozZuERZQ6x5QW04qNoUGSEAmPmp97SSPw MijVIhfM+2fa2E2EaceYjDxfJm6ZdKVgajPL+ztLWRSmxDjYsvALFXZ3CAxWpPOinI8w 3Rxg== X-Gm-Message-State: ALKqPwe0k0O8ZF47GzdCiH8dEtRzdVVI5cg/bB/cZriavi+dz9QTyy+F h3GQHn+q5yx6XVd7tj5/EOeiLUC6F/I= X-Received: by 2002:a17:902:301:: with SMTP id 1-v6mr11310894pld.328.1526680667276; Fri, 18 May 2018 14:57:47 -0700 (PDT) Received: from cloudburst.twiddle.net (97-113-2-170.tukw.qwest.net. [97.113.2.170]) by smtp.gmail.com with ESMTPSA id h8-v6sm10780814pgq.56.2018.05.18.14.57.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 18 May 2018 14:57:46 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 18 May 2018 14:57:33 -0700 Message-Id: <20180518215734.18833-8-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180518215734.18833-1-richard.henderson@linaro.org> References: <20180518215734.18833-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c01::243 Subject: [Qemu-devel] [PULL 7/8] target/unicore32: Honor CPU_DUMP_FPU X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, Guan Xuetao Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Cc: Guan Xuetao Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- target/unicore32/translate.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.17.0 diff --git a/target/unicore32/translate.c b/target/unicore32/translate.c index abe2ea8592..3cae111955 100644 --- a/target/unicore32/translate.c +++ b/target/unicore32/translate.c @@ -2101,7 +2101,9 @@ void uc32_cpu_dump_state(CPUState *cs, FILE *f, psr & (1 << 28) ? 'V' : '-', cpu_mode_names[psr & 0xf]); - cpu_dump_state_ucf64(env, f, cpu_fprintf, flags); + if (flags & CPU_DUMP_FPU) { + cpu_dump_state_ucf64(env, f, cpu_fprintf, flags); + } } void restore_state_to_opc(CPUUniCore32State *env, TranslationBlock *tb, From patchwork Fri May 18 21:57:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 136380 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp1767709lji; Fri, 18 May 2018 15:04:33 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrZmWXB0l7HFcY9o0hrOpKaT2ZMIfwqr2n/b47G/k07biI+dS5g2x7P81d+ZL2Pkasufofa X-Received: by 2002:a37:9386:: with SMTP id v128-v6mr10436568qkd.162.1526681073081; Fri, 18 May 2018 15:04:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526681073; cv=none; d=google.com; s=arc-20160816; b=lzvOf/OhkamjT94ljxFIzuii2mYL//ujvBL9Pg8XpQsDJKtW7A5ozawhd41WkBDrtE PE83B/PpJ8Oy6HH6xkVrV6akK52ckhlHHRtEmZZeeQjYYnHhhMhIIhegSTkFUc4RnIwA f2biHyjYyWCCt2fm7QfnZfm9+QNGlWouMDg4FtfhxI5Fld8ai8p/8gAHEp0jiM+7S1nq 43xuEXVx8aRFiE6VV1MgXi3XOTWpjs3JxAgFB0O6b7WtS3a6NnAHTDMRfvu2SRv1wcdZ f1K3+MepgdAZM7AbxHnetUDaGUYmUaayHMVzE2I64cgFcqJ4RbLHEDM/8sDIXOHvam2z vbtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=l/9wUfl6+EG5TNrDrqYTInImNKqPqlQlpqHO5Quw0z8=; b=UoBXs8JdHe+DCGXAZ6Rz8eAAVgRAIEPOx/H9S7jmzguExmkFz9BhVx6t65OUgjTyGU D1/TGyLmdYyiYg7H8UhBSHsADR+1aOi+Z96PMAmBoDQFAjxk527WfeyyLiQVv+AWj1bm fo1xVVY0YCraTA3sEyRyVhmqRoOvV1xV16LDOs8IX7g2HN3Zc9BD8Hx+9+vdWIv1im1w +OlW+dRPd3W3SYa1IyAtfLzdBjXTB2Ky6SqLGPNxfKOuGki1CkbIK2yvCGoOZpMpUpVc OPc/G3VQ2zFXIPqjYuA/sQg3L4G7pNZqPkXhOWKJL3pKBV4PECSGYxRwmGWraS6WDZmk XtnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=WmSSuGxG; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id k53-v6si4932353qtc.59.2018.05.18.15.04.32 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 18 May 2018 15:04:33 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=WmSSuGxG; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:41022 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJnUG-0005fG-GN for patch@linaro.org; Fri, 18 May 2018 18:04:32 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55388) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJnNq-0000Pu-Nw for qemu-devel@nongnu.org; Fri, 18 May 2018 17:57:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fJnNm-0003Zg-85 for qemu-devel@nongnu.org; Fri, 18 May 2018 17:57:54 -0400 Received: from mail-pg0-x232.google.com ([2607:f8b0:400e:c05::232]:38600) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fJnNm-0003ZV-2J for qemu-devel@nongnu.org; Fri, 18 May 2018 17:57:50 -0400 Received: by mail-pg0-x232.google.com with SMTP id n9-v6so3849402pgq.5 for ; Fri, 18 May 2018 14:57:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=l/9wUfl6+EG5TNrDrqYTInImNKqPqlQlpqHO5Quw0z8=; b=WmSSuGxGn4b0MkRz1FIRM3mX0sJktTC22f57gh93GAiAFtCCOXj1a26RttikQYSA/G Qyo1vD06qnJD8F5jhP5+2A18bHoD+Q0e2QZF52zp2+a4yRUQ6tx1mJs0f5YT+t6fOPvY 6bMqsO9OLPgQf5IuiSgl2quEAxQSUzXj4e6t8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=l/9wUfl6+EG5TNrDrqYTInImNKqPqlQlpqHO5Quw0z8=; b=Qiih8M/B3ysku7dZboF0RWSMtiK93mipOkQC35Iw3xy5wOlXY2X5NYaY5AVIG7ed/U 3sKts2Sa54M/L8zZjHaaXMvvH85I9RbjhC9RPySjNO7OiDeEJ9lsCl6qpiW+mL7zx7fW uEK1WG3tk2RfpBR2in9wDBe9nacKM7bWJgQf4MMN4ATyWyeYb4jkhJvTq8MlLexdgbZz xBykJxf77LZW842qMpdpf7JEmd5SPFbMLxAxfC751hKHDqSjZJIxf5toytSvdR+yU4o1 qVzwMYUQZOKqaUPoivF7iQbQZ2GCj2fwN5MildzAfnnvs3OiWbL7ELQleUDJk2qPfQZX Zs/g== X-Gm-Message-State: ALKqPwdMDHwDAB6B+R0UmC7oLIAJXpmQCEJXhOEwS0pm7I4yp+LbO6E5 zhzvRdlamw17LJzUVsq+sHNgkgCjgzk= X-Received: by 2002:a63:618b:: with SMTP id v133-v6mr8553978pgb.285.1526680668702; Fri, 18 May 2018 14:57:48 -0700 (PDT) Received: from cloudburst.twiddle.net (97-113-2-170.tukw.qwest.net. [97.113.2.170]) by smtp.gmail.com with ESMTPSA id h8-v6sm10780814pgq.56.2018.05.18.14.57.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 18 May 2018 14:57:47 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 18 May 2018 14:57:34 -0700 Message-Id: <20180518215734.18833-9-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180518215734.18833-1-richard.henderson@linaro.org> References: <20180518215734.18833-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::232 Subject: [Qemu-devel] [PULL 8/8] target/xtensa: Honor CPU_DUMP_FPU X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Acked-by: Max Filippov Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- target/xtensa/translate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.17.0 diff --git a/target/xtensa/translate.c b/target/xtensa/translate.c index ae0feb0254..53f6f5db8f 100644 --- a/target/xtensa/translate.c +++ b/target/xtensa/translate.c @@ -1243,7 +1243,8 @@ void xtensa_cpu_dump_state(CPUState *cs, FILE *f, } } - if (xtensa_option_enabled(env->config, XTENSA_OPTION_FP_COPROCESSOR)) { + if ((flags & CPU_DUMP_FPU) && + xtensa_option_enabled(env->config, XTENSA_OPTION_FP_COPROCESSOR)) { cpu_fprintf(f, "\n"); for (i = 0; i < 16; ++i) {