From patchwork Wed Sep 13 09:53:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Helge Deller X-Patchwork-Id: 1833458 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=HOx85FLW; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=patchwork.ozlabs.org) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Rlwn92w9Gz1yh0 for ; Wed, 13 Sep 2023 19:55:41 +1000 (AEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qgMZP-00057u-55; Wed, 13 Sep 2023 05:54:03 -0400 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 1qgMZM-00057D-1Q for qemu-devel@nongnu.org; Wed, 13 Sep 2023 05:54:00 -0400 Received: from sin.source.kernel.org ([2604:1380:40e1:4800::1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qgMZI-0001QM-VI for qemu-devel@nongnu.org; Wed, 13 Sep 2023 05:53:59 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id AE84BCE1A5A; Wed, 13 Sep 2023 09:53:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1857CC433C8; Wed, 13 Sep 2023 09:53:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694598824; bh=RLs+TtYNlZ3jjwGUxsMZeD/Kn6Ub0WfLSanp3PsKTmQ=; h=From:To:Cc:Subject:Date:From; b=HOx85FLW6TQslb2mGmI6hzBj/61fSHzGb7zYRslehupCUU7RfKaEJXGC0t5bOKDkh Nyw1+xzDvXd2Qji4TEg2KrCuQYDpnuv3R5SxoXh4PtPZMr1U+NqTXRKNQ6u3EAS8ls 0TIx2+eGWDd4qLdZuDjPZ8aInuG7W/mkxoWOt2a3BoWCalKSctH4tqyMRmJ9cAB+kQ qJWfAoXDRipEf1ExJaQZP1a4p6NM26i/9sf73TnzGXDhC6rEJ6U5UUpia0/WLOxpvO MlD8qA6OF61P0iw7dc/WCnHUo778FdDrn15rcMm7iB86fgBBy6TZTJRjrVjcHLr27N 8wWad6jMCKOlw== From: deller@kernel.org To: qemu-devel@nongnu.org Cc: Richard Henderson , Helge Deller Subject: [PATCH 0/6] Add Block-TLB support for hppa target Date: Wed, 13 Sep 2023 11:53:34 +0200 Message-ID: <20230913095340.32951-1-deller@kernel.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2604:1380:40e1:4800::1; envelope-from=deller@kernel.org; helo=sin.source.kernel.org X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, 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: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Helge Deller All 32-bit hppa CPUs allow a fixed number of TLB entries to have a different page size than the default 4k. Those are called "Block-TLBs" and are created at startup by the operating system and managed by the firmware of hppa machines through the firmware PDC_BLOCK_TLB call. This patchset adds the necessary glue to SeaBIOS-hppa and qemu to allow up to 16 BTLB entries in the emulation. Signed-off-by: Helge Deller Helge Deller (6): target/hppa: Update to SeaBIOS-hppa version 9 target/hppa: Allow up to 16 BTLB entries target/hppa: Provide qemu version via fw_cfg to firmware target/hppa: Add BTLB support to hppa TLB functions target/hppa: Extract diagnose immediate value target/hppa: Wire up diag instruction to support BTLB hw/hppa/machine.c | 10 +-- pc-bios/hppa-firmware.img | Bin 720216 -> 732376 bytes roms/seabios-hppa | 2 +- target/hppa/cpu.h | 11 ++- target/hppa/helper.h | 1 + target/hppa/insns.decode | 2 +- target/hppa/int_helper.c | 2 +- target/hppa/mem_helper.c | 179 ++++++++++++++++++++++++++++++++------ target/hppa/op_helper.c | 3 +- target/hppa/translate.c | 15 +++- 10 files changed, 184 insertions(+), 41 deletions(-)