From patchwork Tue Aug 27 14:58:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bin Meng X-Patchwork-Id: 1153872 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) 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=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="mMDwwOz7"; dkim-atps=neutral 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 ozlabs.org (Postfix) with ESMTPS id 46HsWb1F5cz9sMr for ; Wed, 28 Aug 2019 01:00:59 +1000 (AEST) Received: from localhost ([::1]:52342 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i2cxs-0003HW-PN for incoming@patchwork.ozlabs.org; Tue, 27 Aug 2019 11:00:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46636) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i2cvv-0003Dk-6P for qemu-devel@nongnu.org; Tue, 27 Aug 2019 10:58:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i2cvs-0003Oq-N9 for qemu-devel@nongnu.org; Tue, 27 Aug 2019 10:58:54 -0400 Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]:34731) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i2cvs-0003OA-HH; Tue, 27 Aug 2019 10:58:52 -0400 Received: by mail-pg1-x544.google.com with SMTP id n9so12856991pgc.1; Tue, 27 Aug 2019 07:58:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=9zPJ4Q9TIgxIyECVOCVkDoBRfMIAHimE+QxZVrAJ+Xo=; b=mMDwwOz7p9gowc1r3aRglqPDJZ6In/MRrdUIGzJp4OD+kvIlvi0zO70cwdgeD96Ol6 UygXm3vKL5Lk+GXiS834cTSQhVS2otMKdtZICtswVGz6q45sn7mr9Ccmo42LXsiPjLmB dPyVEkvHGqij9lfKdZqwnbQOJhG9XpV4yMLS8QAjXQDymbX75AGjnIEWywSMcc4JPCyJ v6i/XMHM4taEyJ5+7ZZiSEHyK9cvzMNYCn7ul6Essfwzl2mkQVVyn0ceZr+MDi0uL1bm QumT5DEhxsHf24wElAUqAWPAM8flpFwvmtHSQw0jZbSwoVSKh8OOL/L1RokS7t+ZgrM4 O44g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=9zPJ4Q9TIgxIyECVOCVkDoBRfMIAHimE+QxZVrAJ+Xo=; b=qy31XN2l70tUZwjO1KeGnloe6xx0ru75ricMpkcCi50DOQ9RwNYs2kPI3T+vy5X8kM 51yZT7JGdihI7X8YmrUgrcrSpuwyHI8veaOj43c5pshhDACIxatsxsjCdWCUrtvjCxZW 8NG8Y5Y1l6+7toYQ3qOJftpVCdmJHKsZOmOKm51qncZmfTgX1T8trb4EEHNEVPWNI7bE 63PwenttqAh3F6HAzvsN87qPTWD4jY1QR7FHJFBUbG97z9QJeecm41YhTRbTtYHX6TiK eiFaE+U0X/5pnRqtStpyCRnF1OJIJRMf96m37f7hr9yCqDkMWtoR9KEweEQCzWZ6WjRh D+sw== X-Gm-Message-State: APjAAAWESQxf12/ckC/5jF6B3ybWBhaF4AaFtc7tRfJotIUy7RPfIBzz Si1MnBd+mbk4m/FXYaUXOOo= X-Google-Smtp-Source: APXvYqwB2h13iFT/lvPIBPhltqcGQ0tCsEjc7GmSxNYH2DbIJq1Vp++Xg58RHWl5oGiZzPwNl+PgBA== X-Received: by 2002:a17:90b:907:: with SMTP id bo7mr26153582pjb.107.1566917931720; Tue, 27 Aug 2019 07:58:51 -0700 (PDT) Received: from localhost.localdomain (unknown-224-80.windriver.com. [147.11.224.80]) by smtp.gmail.com with ESMTPSA id j15sm14839344pfr.146.2019.08.27.07.58.50 (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 27 Aug 2019 07:58:51 -0700 (PDT) From: Bin Meng To: Alistair Francis , Palmer Dabbelt , qemu-devel@nongnu.org, qemu-riscv@nongnu.org Date: Tue, 27 Aug 2019 07:58:15 -0700 Message-Id: <1566917919-25381-7-git-send-email-bmeng.cn@gmail.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1566917919-25381-1-git-send-email-bmeng.cn@gmail.com> References: <1566917919-25381-1-git-send-email-bmeng.cn@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::544 Subject: [Qemu-devel] [PATCH v6 06/30] riscv: hw: Remove the unnecessary include of target/riscv/cpu.h X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 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" The inclusion of "target/riscv/cpu.h" is unnecessary in various sifive model drivers. Signed-off-by: Bin Meng Reviewed-by: Alistair Francis --- Changes in v6: None Changes in v5: - new patch to remove the unnecessary include of target/riscv/cpu.h Changes in v4: None Changes in v3: None Changes in v2: None hw/riscv/sifive_prci.c | 1 - hw/riscv/sifive_test.c | 1 - hw/riscv/sifive_uart.c | 1 - 3 files changed, 3 deletions(-) diff --git a/hw/riscv/sifive_prci.c b/hw/riscv/sifive_prci.c index 1ab98d4..1957dcd 100644 --- a/hw/riscv/sifive_prci.c +++ b/hw/riscv/sifive_prci.c @@ -22,7 +22,6 @@ #include "hw/sysbus.h" #include "qemu/log.h" #include "qemu/module.h" -#include "target/riscv/cpu.h" #include "hw/riscv/sifive_prci.h" static uint64_t sifive_prci_read(void *opaque, hwaddr addr, unsigned int size) diff --git a/hw/riscv/sifive_test.c b/hw/riscv/sifive_test.c index 655a3d7..31cad9f 100644 --- a/hw/riscv/sifive_test.c +++ b/hw/riscv/sifive_test.c @@ -23,7 +23,6 @@ #include "qemu/log.h" #include "qemu/module.h" #include "sysemu/sysemu.h" -#include "target/riscv/cpu.h" #include "hw/riscv/sifive_test.h" static uint64_t sifive_test_read(void *opaque, hwaddr addr, unsigned int size) diff --git a/hw/riscv/sifive_uart.c b/hw/riscv/sifive_uart.c index cd74043..1601bd9 100644 --- a/hw/riscv/sifive_uart.c +++ b/hw/riscv/sifive_uart.c @@ -22,7 +22,6 @@ #include "hw/sysbus.h" #include "chardev/char.h" #include "chardev/char-fe.h" -#include "target/riscv/cpu.h" #include "hw/riscv/sifive_uart.h" /*