From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NelsondeMBP.localdomain (36-230-190-179.dynamic-ip.hinet.net [36.230.190.179]) by sourceware.org (Postfix) with ESMTP id 204E63858C50; Thu, 9 May 2024 00:54:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 204E63858C50 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: sourceware.org; spf=none smtp.mailfrom=NelsondeMBP.localdomain ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 204E63858C50 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=36.230.190.179 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715216051; cv=none; b=LfoW7TGeyzvWrhR89I+BzmNu6M9ajai8KN6NV9xRWu7i/Y7Ri7rX6XIc+3UjDpaEzS4M3XLm7YZVOFf8/272RR7yMCednhZSk+Gfc+Jr7L0n049iEt0bJeOy8B3mAOmmk/nE+HQcfTo344aEe5jJ+YkoefLGl3JBVtajzwkqgF8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715216051; c=relaxed/simple; bh=s4f9v6Nz9SlUOBLPj25ePNZrLDeRZgtz0jY6oljeU1w=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=jaEwebir7GY77jadp0A650Gw/uOOtqnlGpJY6xXLY+JRli9zADQb2/7v17PEJLoFzWx0m0KmsO8MEkn/LEzQqCSBsb3rCuHuXavKnGuwfU2VZ/jPOOAUtke8DHovugP61+cUuV3kwPweC3xhYlSWyXHg6rzhu2dA44YO4am7HuE= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by NelsondeMBP.localdomain (Postfix, from userid 501) id 13E741A80D02; Thu, 9 May 2024 08:54:03 +0800 (CST) From: Nelson Chu To: gdb-patches@sourceware.org, tom@tromey.com, aburgess@redhat.com, vapier@gentoo.org Cc: binutils@sourceware.org, Nelson Chu Subject: [PATCH] sim: riscv: Fix build fail since INSN_CLASS_A was removed. Date: Thu, 9 May 2024 08:54:02 +0800 Message-Id: <20240509005402.1137-1-nelson@rivosinc.com> X-Mailer: git-send-email 2.39.3 (Apple Git-146) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,GIT_PATCH_0,HEADER_FROM_DIFFERENT_DOMAINS,KAM_DMARC_STATUS,KAM_LAZY_DOMAIN_SECURITY,KHOP_HELO_FCRDNS,NO_DNS_FOR_FROM,RCVD_IN_PBL,RCVD_IN_SORBS_DUL,RDNS_DYNAMIC,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Updated INSN_CLASS_A to INSN_CLASS_ZAAMO and INSN_CLASS_ZALRSC since the former was removed and sepearted into the latter two by the commit, c144f638337944101131d9fe6de4ab908f6d4c2d sim/ * riscv/sim-main.c (execute_one): Updated INSN_CLASS_A to INSN_CLASS_ZAAMO and INSN_CLASS_ZALRSC since the former was removed and sepearted into the latter two. --- sim/riscv/sim-main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sim/riscv/sim-main.c b/sim/riscv/sim-main.c index 41973d9dd06..378e6f1dc69 100644 --- a/sim/riscv/sim-main.c +++ b/sim/riscv/sim-main.c @@ -1299,7 +1299,8 @@ execute_one (SIM_CPU *cpu, unsigned_word iw, const struct riscv_opcode *op) switch (op->insn_class) { - case INSN_CLASS_A: + case INSN_CLASS_ZAAMO: + case INSN_CLASS_ZALRSC: return execute_a (cpu, iw, op); case INSN_CLASS_C: /* Check whether model with C extension is selected. */ -- 2.39.3 (Apple Git-146)