From patchwork Sat Feb 15 02:16:51 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Keith Packard X-Patchwork-Id: 13975924 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2B460C021A4 for ; Sat, 15 Feb 2025 02:17:49 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tj7k0-0004Fu-BH; Fri, 14 Feb 2025 21:17:12 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tj7jz-0004F0-Ba for qemu-devel@nongnu.org; Fri, 14 Feb 2025 21:17:11 -0500 Received: from home.keithp.com ([63.227.221.253] helo=elaine.keithp.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tj7jw-0006dE-Fd for qemu-devel@nongnu.org; Fri, 14 Feb 2025 21:17:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=keithp.com; s=mail; t=1739585824; bh=hEdGGrdRnyKcM0NWUuU9kjR/8KwYnsAxspFYskjaN3Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lAo2rbUjoMgSV6DM0bL3M5ngVmYPFbINcV/ia3lgXpVpw+P4HcQQfaQ980vTui/6U 9eQ2YSekKsljar8DmTyvQJ8CMVOqhG2QCvvReJShz5pI2BJRW1aZUcYyxN0S922xrt FnQiu3hxuS31L3dwKMNYMtkHu1zizJoW+Y16INTJi2FMUQFMkOSs7opJ7AFe5AOcM2 y0prpHhHa8T5Z12LwkHapaM8jugu2R7Zvky/WuoS/lqOvasS16+agNkaMV/tnY/eAl s6yFQTTjAdT1s3ERHC6nroTlNlgdOUUwYVwzc08ujNNLghncO26bPpDhKY3yVTW4ZG TQxdt0Kp18iIQ== Received: from localhost (localhost [127.0.0.1]) by elaine.keithp.com (Postfix) with ESMTP id 18F943F22BF4 for ; Fri, 14 Feb 2025 18:17:04 -0800 (PST) X-Virus-Scanned: Debian amavis at keithp.com Received: from elaine.keithp.com ([127.0.0.1]) by localhost (elaine.keithp.com [127.0.0.1]) (amavis, port 10024) with LMTP id yLTZX6ZfgMyv; Fri, 14 Feb 2025 18:17:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=keithp.com; s=mail; t=1739585822; bh=hEdGGrdRnyKcM0NWUuU9kjR/8KwYnsAxspFYskjaN3Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GRuce0iEF4mrDT1yWIcQwDF8EHA3Qcijw7T9G/mSp0oKb546KAcA3zJHoa3Nkiuiu QmVTf2IcpoUnPTbSor1FJL8XbAZWZlOL59Hc7FAUvxNFp2me8SJDQnvX5FOnDnvsxK BypuK9w5VSnsH1xNGtuLZY6nP5OlyA/WWVuaHfm/waDmaF6lhTuL1I7jcfuZg1UWDN E7QmWu9EzlZueXoKKP4amyzvX6jOQ2NAbyjJHa60mGi1AEI8iOsT19goSiNbnHyD0D b4J1KG3dx1gQiTKP7sgJGHNEYOrc43EIT+Udhk5WD/7y2w9s3sY309w860a1Ezf9os piXhXoQ/1EsbQ== Received: from keithp.com (koto.keithp.com [192.168.11.2]) by elaine.keithp.com (Postfix) with ESMTPSA id 89AB33F22BBE; Fri, 14 Feb 2025 18:17:02 -0800 (PST) Received: by keithp.com (Postfix, from userid 1000) id 5828B1E6009D; Fri, 14 Feb 2025 18:17:02 -0800 (PST) To: qemu-devel@nongnu.org Cc: Keith Packard Subject: [PATCH 2/5] target/rx: Set exception vector base to 0xffffff80 Date: Fri, 14 Feb 2025 18:16:51 -0800 Message-ID: <20250215021654.1786679-3-keithp@keithp.com> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250215021654.1786679-1-keithp@keithp.com> References: <20250215021654.1786679-1-keithp@keithp.com> MIME-Version: 1.0 Received-SPF: pass client-ip=63.227.221.253; envelope-from=keithp@keithp.com; helo=elaine.keithp.com 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_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Keith Packard X-Patchwork-Original-From: Keith Packard via From: Keith Packard Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org The documentation says the vector is at 0xffffff80, instead of the previous value of 0xffffffc0. That value must have been a bug because the standard vector values (20, 21, 23, 25, 30) were all past the end of the array. Signed-off-by: Keith Packard --- target/rx/helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/rx/helper.c b/target/rx/helper.c index 80912e8dcb..55e2ae4a11 100644 --- a/target/rx/helper.c +++ b/target/rx/helper.c @@ -90,7 +90,7 @@ void rx_cpu_do_interrupt(CPUState *cs) cpu_stl_data(env, env->isp, env->pc); if (vec < 0x100) { - env->pc = cpu_ldl_data(env, 0xffffffc0 + vec * 4); + env->pc = cpu_ldl_data(env, 0xffffff80 + vec * 4); } else { env->pc = cpu_ldl_data(env, env->intb + (vec & 0xff) * 4); }