From patchwork Mon Sep 7 18:04:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 249255 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp3892749ilg; Mon, 7 Sep 2020 11:09:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSVoGU25i1OOjfyFWJVivGFKPK8SoICY59pcZuR5W1Gt+KawvRhS3yFGBEGtzlZsPFYlCM X-Received: by 2002:a25:cb97:: with SMTP id b145mr28938716ybg.393.1599502156010; Mon, 07 Sep 2020 11:09:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599502156; cv=none; d=google.com; s=arc-20160816; b=lcjpEsx0ftt+6VGeS5oCd+5aKK9MWZBAItUD2mxBb49ws1PS0gO4zqzKcNY4LbP16c ToxTSN0dfD6fwBlpXmSOMixOOQwkWUoABtBNEp/ci2iiuDkHP9nfkdEbcSzNgTiwE9GP rzk7xKms9zyj/ueqWBnjpmCeC1KIH+iHZeovRoSswxfvQqEq+yUyqBFpywC3uVTbmbyD p0La4AzVB5cgizj612yj5OuWgV/d0hM/HpKwEOourJJnvj4sd4n/+ZmXAgdqJ4vhszqF 1V0iKxKI8kKHnr52okGRA5FJIERLtRnTike4uPpqMfPn71jvzPH7ZqQc9/kASMwdV0bo uBWg== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=u9Y0vjaPuoAkxScaNqtUASpr1pIzL6DgrA0aESQcv0g=; b=DBNWSv0svHHOTiw8k8OnBusaWPFojJvq/30qiFhuR7G0zYstJ/xCo8PPv9Xe69zCQg Zl+ia7Pmvfd+EhbtyVR8NXu2ats+lt+16WPTZwku88cH0HZSYkQTI4qzGfskQxuptMWp 8bp4LzyWM3eeeeXz8ZbDjPTB3docJewSA6vp8AlEDp8v02bLhzpm6ah1NbGrV7sLj+n/ e4AQJkRsdQTuT/92cp21s+Hfrb3BtazjhyaPZz1M4RDYllObmzlmEFTiVtUNVOgqvQll 96/Sj03QZbqNRGxt30VQhiDAop4FL4kdIqIUsmOuSD1nTFuqoqsMRo8m/GW/Us2O5fvf L76g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=YtqShFO1; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d7si9894513ybj.386.2020.09.07.11.09.15 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 07 Sep 2020 11:09:16 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=YtqShFO1; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:59712 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kFLZr-0001HY-Hs for patch@linaro.org; Mon, 07 Sep 2020 14:09:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38802) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kFLVv-0003nY-Lm for qemu-devel@nongnu.org; Mon, 07 Sep 2020 14:05:11 -0400 Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]:52209) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kFLVu-0002Nq-1N for qemu-devel@nongnu.org; Mon, 07 Sep 2020 14:05:11 -0400 Received: by mail-pj1-x1034.google.com with SMTP id a9so3823783pjg.1 for ; Mon, 07 Sep 2020 11:05:08 -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=u9Y0vjaPuoAkxScaNqtUASpr1pIzL6DgrA0aESQcv0g=; b=YtqShFO1A4ZndEV+x+M8Y+VYv9PJxOAW5+QvLHcKwailjNcGvs+K+Yc6fZCichoghj 5dRP4EmpaM4TI5NPJYWWk7joVN3WVIP0ATVjL6BzcTWhSpV49YQ5fLFznW2tKzQpCScf rQz2JpVWp3/nfbLCO7K01yz2ozD3nVz5r2IgAnotPg0i/9CBj6pUpYMo5XKuuXJ8QDkH x76One/cStZ1yVUQJyJZKq8DJQYYcVIanGm2mecXW39hCXrYJzIEb7P3IgkTM+JoOE7L OP/2Km4uM8NdmvXsYbNOfVmG3I+eqb1EMVk/2/FoA88NZt6ibJkH6d4AhnbKC2dtIKzq mImA== 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=u9Y0vjaPuoAkxScaNqtUASpr1pIzL6DgrA0aESQcv0g=; b=rDvwUtdcs8lQ6rQQikeujPpE0SpQMQ/lsDW9xFVLEHu+69Ug3q7DvkoQ5IKiZF/vuj w1mgU9qbianOYzlJjL2oEhhcsBH6shOPnlEACJcwut3UE1+BsuHyayyFD/RyaN50qgPt +DI5Fmggl92G6ZRj01P/SXawHFYLSP7znxMex2XU1mpQKW4MdGcs3XPI7gDnJjXXRCEJ 2EkyKtkgZ23bTL6exZRbFz53uTw6RVftoB4dzW3WfJuCR+uf6I/6UC17A4JZJqXXepKG DsC4Q0+EO/OHo4uwQ3HvHKSHy2HTrdNDnyuWni/CUMqdFcs8/m/CeNXTwAZAdJykiIFW iajw== X-Gm-Message-State: AOAM531rWsQyUMBRPPFjDTuURU128R+rlpxwNZrMSW80tBtMdzknBazb FVZy63jzrBnkTOIy924s1G/LbarpN1ppog== X-Received: by 2002:a17:90b:3355:: with SMTP id lm21mr415925pjb.125.1599501907643; Mon, 07 Sep 2020 11:05:07 -0700 (PDT) Received: from localhost.localdomain ([71.212.141.89]) by smtp.gmail.com with ESMTPSA id v6sm11367768pfi.38.2020.09.07.11.05.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Sep 2020 11:05:06 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 15/19] target/microblaze: Treat pvr_regs as constant Date: Mon, 7 Sep 2020 11:04:55 -0700 Message-Id: <20200907180459.29025-6-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200907180459.29025-1-richard.henderson@linaro.org> References: <20200907175102.28027-1-richard.henderson@linaro.org> <20200907180459.29025-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1034; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1034.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Edgar E . Iglesias" , peter.maydell@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Do not allow gdb to set the values, and don't bother dumping unchanging values with -d cpu. Tested-by: Edgar E. Iglesias Reviewed-by: Edgar E. Iglesias Signed-off-by: Richard Henderson --- target/microblaze/gdbstub.c | 4 ---- target/microblaze/translate.c | 5 ----- 2 files changed, 9 deletions(-) -- 2.25.1 diff --git a/target/microblaze/gdbstub.c b/target/microblaze/gdbstub.c index 9e3b9ac824..be39fd4540 100644 --- a/target/microblaze/gdbstub.c +++ b/target/microblaze/gdbstub.c @@ -132,10 +132,6 @@ int mb_cpu_gdb_write_register(CPUState *cs, uint8_t *mem_buf, int n) case GDB_BTR: env->btr = tmp; break; - case GDB_PVR0 ... GDB_PVR11: - /* PVR12 is intentionally skipped */ - cpu->cfg.pvr_regs[n - GDB_PVR0] = tmp; - break; case GDB_EDR: env->edr = tmp; break; diff --git a/target/microblaze/translate.c b/target/microblaze/translate.c index 9e4551d99b..eca422b3db 100644 --- a/target/microblaze/translate.c +++ b/target/microblaze/translate.c @@ -1919,11 +1919,6 @@ void mb_cpu_dump_state(CPUState *cs, FILE *f, int flags) env->esr, env->fsr, env->btr, env->edr, env->ear, env->slr, env->shr); - for (i = 0; i < 12; i++) { - qemu_fprintf(f, "rpvr%-2d=%08x%c", - i, env->pvr.regs[i], i % 4 == 3 ? '\n' : ' '); - } - for (i = 0; i < 32; i++) { qemu_fprintf(f, "r%2.2d=%08x%c", i, env->regs[i], i % 4 == 3 ? '\n' : ' ');