From patchwork Fri Jan 4 00:37:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukas Auer X-Patchwork-Id: 1020556 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=aisec.fraunhofer.de Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 43W5Vw5xzyz9s7T for ; Fri, 4 Jan 2019 11:38:32 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 8B9AEC21D4A; Fri, 4 Jan 2019 00:38:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id F39B4C21D8E; Fri, 4 Jan 2019 00:38:02 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 7A4CFC21C50; Fri, 4 Jan 2019 00:38:00 +0000 (UTC) Received: from mail-edgeDD24.fraunhofer.de (mail-edgeDD24.fraunhofer.de [192.102.167.24]) by lists.denx.de (Postfix) with ESMTPS id 250F7C21C8B for ; Fri, 4 Jan 2019 00:38:00 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2GXAQAO4PJb/xoBYJliGwEBAQEDAQEBBwMBAQGBZYIEZnA5h0KFLYsdhDqMBop9DRuBFYM8g3AiOBIBAwEBAgEBAgICaRwMhCFfdgFGgR4gDoMmAYIAAah8g3GGKwkBh1CEK4FXP4EQAYhdhQ4CiRyBbJRnBwKBEYEJBIRciiILGIIkhzSHJZRSAYNDgV0igVUzGiSDOwmJPWGGND4BMo5cAQE X-IPAS-Result: A2GXAQAO4PJb/xoBYJliGwEBAQEDAQEBBwMBAQGBZYIEZnA5h0KFLYsdhDqMBop9DRuBFYM8g3AiOBIBAwEBAgEBAgICaRwMhCFfdgFGgR4gDoMmAYIAAah8g3GGKwkBh1CEK4FXP4EQAYhdhQ4CiRyBbJRnBwKBEYEJBIRciiILGIIkhzSHJZRSAYNDgV0igVUzGiSDOwmJPWGGND4BMo5cAQE X-IronPort-AV: E=Sophos;i="5.56,253,1539640800"; d="scan'208";a="22609575" Received: from mail-mtaka26.fraunhofer.de ([153.96.1.26]) by mail-edgeDD24.fraunhofer.de with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Jan 2019 01:37:58 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0C1AgCO3/Jb/xBhWMBiHAEBAQQBAQcEAQGBZYJqTyE5jG+bXYp9DRuEUYQROBIBAwEBAgEBAm0cDIV1AUaBHiAOgyYBggGodoocCQGHUIYCP4EQAYhdhQ4CiRyBbJRnBwKBEYEJBIRciiILGIIkhzSHJZgWgV0hgVUzGiSDOwmJPWGGND4DMI5cAQE X-IronPort-AV: E=Sophos;i="5.56,253,1539640800"; d="scan'208";a="25618097" Received: from fgdemucivp01ltm.xch.fraunhofer.de (HELO FGDEMUCIMP12EXC.ads.fraunhofer.de) ([192.88.97.16]) by mail-mtaKA26.fraunhofer.de with ESMTP/TLS/AES256-SHA; 04 Jan 2019 01:37:58 +0100 Received: from localhost.de (10.80.233.51) by FGDEMUCIMP12EXC.ads.fraunhofer.de (10.80.232.43) with Microsoft SMTP Server (TLS) id 14.3.408.0; Fri, 4 Jan 2019 01:37:58 +0100 From: Lukas Auer To: Date: Fri, 4 Jan 2019 01:37:27 +0100 Message-ID: <20190104003734.28052-1-lukas.auer@aisec.fraunhofer.de> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-TM-AS-Product-Ver: SMEX-11.0.0.4179-8.200.1013-24328.005 X-TM-AS-Result: No--3.117800-8.000000-31 X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No Cc: Greentime Hu Subject: [U-Boot] [PATCH v2 0/7] Small fixes for RISC-V X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" This patch series contains small fixes for RISC-V. It touches three areas. - Patch 1 clarifies the error message on undefined exceptions. - Patch 2 removes the current dcache flush implementation. It uses the fence instruction, which does not directly affect the data cache and can therefore not be used to implement dcache flush and invalidation. - Patches 3-6 improve support for standalone applications. They add support for RV64I systems and fix a problem, where a callee-saved register is used without saving it beforehand. Patch 6 defines the standalone load address for qemu-riscv to allow it to run standalone applications. Changes in v2: - Replace patch "riscv: remove invalid dcache flush implementation" with new patch "riscv: move the AX25-specific implementation of flush_dcache_all" - New patch "riscv: use invalidate/flush_*cache_range functions in cache.c" Lukas Auer (7): riscv: clarify error message on undefined exceptions riscv: move the AX25-specific implementation of flush_dcache_all riscv: use invalidate/flush_*cache_range functions in cache.c riscv: remove RISC-V standalone linker script riscv: replace use of callee-saved register in standalone riscv: support standalone applications on RV64I systems riscv: qemu: define standalone load address arch/riscv/config.mk | 3 +-- arch/riscv/cpu/ax25/cache.c | 22 +++++++++++++++++++ arch/riscv/lib/cache.c | 14 ++++++------ arch/riscv/lib/interrupts.c | 3 ++- examples/standalone/riscv.lds | 40 ----------------------------------- examples/standalone/stubs.c | 21 +++++++++++++----- include/configs/qemu-riscv.h | 2 ++ 7 files changed, 49 insertions(+), 56 deletions(-) delete mode 100644 examples/standalone/riscv.lds