Message ID | 20190904193059.26202-32-richard.henderson@linaro.org |
---|---|
State | Accepted |
Commit | b0e382b8cf365fed8b8c43482029ac7655961a85 |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp369566ilq; Wed, 4 Sep 2019 12:53:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqxNU/hQ3ctV+QgaOsnmO/h+IeuUtDV9VuRu4SsvEIzTMQyVnzTUjB8TgFph1CqDf5YfVSEx X-Received: by 2002:ac8:474d:: with SMTP id k13mr41296122qtp.266.1567626812360; Wed, 04 Sep 2019 12:53:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567626812; cv=none; d=google.com; s=arc-20160816; b=oadTgy2wA7ASTEnVwJKBoIIRwRmPkHTaGoRfWPNGufQJgFLOVoBRna4dG3Yev2ZNfd lzALHJOSvOqa038+NDkaZnFmiQscUX3iuxWYydM7qYrEElEDe8arj8hLIZP7EdT34CoD rz/vIQOJXogd8T60Q9eyqZi+zoETbJ/pPpsCd6bS/iPPuhmxS6zXvtkwtpf4p6RuvEgf bv/f1ILpyEaJlnmafFkK3H40i4yVxiqtL+QlYjMdy1XFS+JZrcoJHj6EAxFkTd8BoH01 iVbNNjfAALiKJE/I1eGpxt69Fnns/FsDnEmEEs2HBU9ugaNyFkzfJxgYYqvPZVLcGN9V zVCQ== 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=U7L/XkW0Sx1L9zkCTuOn1y4+61r+0iIpJsvReD5rmxY=; b=lrkgDWH6uUddaTh/WjT7uMigaMw83TeHoL7QYUoWlL0D0vhNFQM8TRjomVtcuZn8HN aE/u4py7vuMZLmJygSsb+1gbMnkuVfq5NsHCWnUGeyY3ZJfMjsa9T344gMbFKZQU8Din PCiGaxzqfC6Z3y20v6EIFgsHX3nQ4iTfKO0qqIAXKNnEtcrRb0030T9n/JVS58kk5J8w 7XbLSEdnTH/uinzavKmi0CHA6wW9KDAdk8IkbqHoWhqzGPkdi8UTf8Gb81hSGX4UDnDM ejPjB8qp1YSpdYp1bg+rtRDRfleGH9qgASQMHigfVue4FEqGatm+1LDEbvtEsSPqiRj5 wZhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=RbPthGKh; 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id a21si6263634qkk.347.2019.09.04.12.53.32 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 04 Sep 2019 12:53:32 -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=RbPthGKh; 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]:37898 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1i5bLP-0001Cl-OT for patch@linaro.org; Wed, 04 Sep 2019 15:53:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40464) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1i5b0K-0004uj-JW for qemu-devel@nongnu.org; Wed, 04 Sep 2019 15:31:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1i5b0I-0002bj-PW for qemu-devel@nongnu.org; Wed, 04 Sep 2019 15:31:44 -0400 Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]:45212) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1i5b0I-0002ab-FK for qemu-devel@nongnu.org; Wed, 04 Sep 2019 15:31:42 -0400 Received: by mail-pg1-x543.google.com with SMTP id 4so8228490pgm.12 for <qemu-devel@nongnu.org>; Wed, 04 Sep 2019 12:31: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; bh=U7L/XkW0Sx1L9zkCTuOn1y4+61r+0iIpJsvReD5rmxY=; b=RbPthGKhSrOSS/iRPvl4YUByTNVFLfRkCYR0MMaJdkJP1MXbEvc9Eh8/eOAWr5UL2q 5dwl8TcXzfR8zbmekhwzfQGlI2dcHwjqkfxtxrLZZbjWxne3v5fSMsCKNtbaw1mknDO9 I5sjMs1PhysxDvBOWqbKfyqjhuWXF+oXB9gXK8vxwaDRfFyK7trqAldSkS1XR8+M8+rR A6ccsgl+RtlC1vL88j6i4d7cMfC09bowUN0RT6yZJK8zgCI7OISbdnvjTzl2gqfIIXnB Zw+EfhqjKRZxHGR3mf1KbE8vw1VUJ2MGxZIIbJNbwXI58Fx91kbReSAfDCk/9lbS7PN6 G2GA== 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=U7L/XkW0Sx1L9zkCTuOn1y4+61r+0iIpJsvReD5rmxY=; b=pBVrgAECmLI6EzzxhCxdzGrjF2hbiAR47E/tWV28/l02Ik0o+T3F9F9fMYVfmdYEZM n3TuT1Yvjz0mSPsXQpa1T+70LRSxd0cnU94UJg41M0cnSOovy9N0HHKw+3WdJ7ZdXVdX Ca5KOQ94sk0j/ZEiBuTSVSn38F/5cMx/rrzgrOvtTTsdGw2LADCYHFsm+aJ7cdK/Jllb 2ulzC7ggvFTT2VWJ5lrEArkRpS3AzHDjcRb9dJYhZFCQKX1llJ401IUjDWileN8YdHfx n0WbyDGb+BtnJO4X7+kdnQg0Mmk5QRPDN/i3/lIugOBabtoB/vft1Fs4CHHMvqbPrs2L h9GQ== X-Gm-Message-State: APjAAAWJ1oi7OGLO2HlR2PLsQretCuekKqp996nTRxOT9RIF9whkZ/sY 75vXcLUHSdqlqGR4RzHOj0powxjgSrU= X-Received: by 2002:a65:6557:: with SMTP id a23mr36592316pgw.439.1567625500863; Wed, 04 Sep 2019 12:31:40 -0700 (PDT) Received: from localhost.localdomain (97-113-7-119.tukw.qwest.net. [97.113.7.119]) by smtp.gmail.com with ESMTPSA id f6sm18999174pga.50.2019.09.04.12.31.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Sep 2019 12:31:40 -0700 (PDT) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Date: Wed, 4 Sep 2019 12:30:21 -0700 Message-Id: <20190904193059.26202-32-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190904193059.26202-1-richard.henderson@linaro.org> References: <20190904193059.26202-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::543 Subject: [Qemu-devel] [PATCH v4 31/69] target/arm: Diagnose base == pc for LDM/STM X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: peter.maydell@linaro.org, qemu-arm@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
target/arm: Convert aa32 base isa to decodetree
|
expand
|
diff --git a/target/arm/translate.c b/target/arm/translate.c index b623dbcd48..d0fc916ff9 100644 --- a/target/arm/translate.c +++ b/target/arm/translate.c @@ -9863,7 +9863,7 @@ static bool op_stm(DisasContext *s, arg_ldst_block *a, int min_n) list = a->list; n = ctpop16(list); - if (n < min_n) { + if (n < min_n || a->rn == 15) { unallocated_encoding(s); return true; } @@ -9943,7 +9943,7 @@ static bool do_ldm(DisasContext *s, arg_ldst_block *a, int min_n) list = a->list; n = ctpop16(list); - if (n < min_n) { + if (n < min_n || a->rn == 15) { unallocated_encoding(s); return true; } @@ -9983,6 +9983,7 @@ static bool do_ldm(DisasContext *s, arg_ldst_block *a, int min_n) op_addr_block_post(s, a, addr, n); if (loaded_base) { + /* Note that we reject base == pc above. */ store_reg(s, a->rn, loaded_var); }