From patchwork Thu Sep 27 21:13:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 147734 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp2517969lji; Thu, 27 Sep 2018 14:29:04 -0700 (PDT) X-Google-Smtp-Source: ACcGV61bBRlCcTdC/YmrjEx23uKiDDdRsr4aZulm4KXjXVu9RvquwmmcHeZxcwUJYYOqfXpB9n4o X-Received: by 2002:aed:30e2:: with SMTP id 89-v6mr10329236qtf.80.1538083744377; Thu, 27 Sep 2018 14:29:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538083744; cv=none; d=google.com; s=arc-20160816; b=armUoe3VME8f58cGhl0sxore6aFdLQ5/NVgHYyQRerPslROlnBSQ9DR5cdbBEPw4ys jeUOM/mzvm4S8UW/8T4So/lUfM2WJ8oxTgqMZoi3oX7ziS96ujsHacBvyoE9UtPx2Sg6 vTmcUSgdy388NLjYSL3qJQfXYOaVN+WJ9emH7gvtYUGa3SG1E2i0+4VNAR0FD9VGaTLN y6XQzaBuX4CwqK7Tf4uCdoZfSqDjOytbR1eQzh3nDvApoEbSb4Fw0y5bTqkWJqnK5WTR w98c14PDDRNKawAF0PHTO91GsQD9WC2NQVsFn9RD1aSrA1PerDMgpY6C7TmSuOc20aJm fAog== 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; bh=Z0GMOl8+Ezd6ThTzXld8zyxZaItNAeQNjpk+btBHUf4=; b=Fgi/F2tjpTcjsO4pFmDOh8NU56zan3Y89Hu6RdrijSUUrlY9iGDf3yiY2sP0G0Acuw JgFn4OIujXU+XaTsPUAm9K2sneocCSwhkEeKReKg9CrWllT3PnovuYrZspKLk9mfHan5 5HMkGzK9lSDnF+ldrgTndCL8ve8ThjIjJsI5Vozw4dVjtCVfb99XtGJja65KfggDpAM2 M4Rf6VbGqqil6qxwO461+lBWlyLdRnIb/hZXYJGHkFUa8HLOd4bYHK+70+WAOEhsYagu 76s2bcXx1xAMPmD0mCgKc/alYk3yuBcYG1ZbeoZQN0cpL2HRBU6Y6NeZq/+Xz3fja0kL hlWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Tdnl4Uiy; 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 f53-v6si2301447qte.179.2018.09.27.14.29.04 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 27 Sep 2018 14:29:04 -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=Tdnl4Uiy; 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]:39476 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g5dqJ-0004AW-Nn for patch@linaro.org; Thu, 27 Sep 2018 17:29:03 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54149) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g5dpa-0003xe-QW for qemu-devel@nongnu.org; Thu, 27 Sep 2018 17:28:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g5dbI-0000ZX-RX for qemu-devel@nongnu.org; Thu, 27 Sep 2018 17:13:36 -0400 Received: from mail-pf1-x436.google.com ([2607:f8b0:4864:20::436]:46817) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g5dbI-0000Xz-HM for qemu-devel@nongnu.org; Thu, 27 Sep 2018 17:13:32 -0400 Received: by mail-pf1-x436.google.com with SMTP id d8-v6so2732732pfo.13 for ; Thu, 27 Sep 2018 14:13:32 -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=Z0GMOl8+Ezd6ThTzXld8zyxZaItNAeQNjpk+btBHUf4=; b=Tdnl4UiyhCkbsPi6vx2WNpIoi0JMGb+U8/CoiHgNdj0q/+mynXx7/MAGXAQpIVmx4/ oY0Gar/NZcn7sLRueYkJBnMx/P/b0VEtNF7E1WXV2CHlIRaZPqdtR0God2aamG3MSOSD FhX+gg3Y2asGvz+Ryvpw1/hZEnYiOLiVVSNBE= 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=Z0GMOl8+Ezd6ThTzXld8zyxZaItNAeQNjpk+btBHUf4=; b=TZ9B6f4Mq6OsycoH7/1ubn/uWm/psv0NYun9LOl0CqGixbzwgP0U2ze/cQZtOZyot2 bq8AH7guBHGuLEtI6mtrF5r0qvoQiqxYcoXPhww304JS1Ez4ut/YjS2LDchCXSty15sx Buoj9FI647OMvsT0DsPqNUZM+cH4gSrAdHCt0KnejVTi4RvXjgTl6Vs0zUA37jicd7Cm z2VeErvDB8KfYQElqnw8B1G88ebAPm3i1q5FXE+DZKZL5SFJVQs1++6KxwwNRewcByeA qCyYQ/UMnhsAJHyNaP2SjdLDjc+G894YZ3tT4MIppDp4zKoVEBz32BrUNYg7u9pvmAfA nTrg== X-Gm-Message-State: ABuFfoh9YEroSvlFXQDQR0sZfBkFIKH/zQ7UNl/4O6FtYsop3jXpdhno YLI/4QnxCZRa3+E5vusphm3WauO4gLU= X-Received: by 2002:a63:f501:: with SMTP id w1-v6mr9192355pgh.336.1538082811137; Thu, 27 Sep 2018 14:13:31 -0700 (PDT) Received: from cloudburst.twiddle.net (97-113-8-179.tukw.qwest.net. [97.113.8.179]) by smtp.gmail.com with ESMTPSA id l26-v6sm5395884pfg.161.2018.09.27.14.13.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 27 Sep 2018 14:13:30 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Thu, 27 Sep 2018 14:13:17 -0700 Message-Id: <20180927211322.16118-5-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180927211322.16118-1-richard.henderson@linaro.org> References: <20180927211322.16118-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::436 Subject: [Qemu-devel] [PATCH v2 4/9] target/arm: Fix cortex-a7 id_isar0 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" The incorrect value advertised only thumb2 div without arm div. Signed-off-by: Richard Henderson --- target/arm/cpu.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) -- 2.17.1 Reviewed-by: Philippe Mathieu-Daudé diff --git a/target/arm/cpu.c b/target/arm/cpu.c index 03bf28f533..020e79918b 100644 --- a/target/arm/cpu.c +++ b/target/arm/cpu.c @@ -1587,7 +1587,10 @@ static void cortex_a7_initfn(Object *obj) cpu->id_mmfr1 = 0x40000000; cpu->id_mmfr2 = 0x01240000; cpu->id_mmfr3 = 0x02102211; - cpu->id_isar0 = 0x01101110; + /* a7_mpcore_r0p5_trm, page 4-4 gives 0x01101110; but + * table 4-41 gives 0x02101110, which includes the arm div insns. + */ + cpu->id_isar0 = 0x02101110; cpu->id_isar1 = 0x13112111; cpu->id_isar2 = 0x21232041; cpu->id_isar3 = 0x11112131;