From patchwork Mon Jan 31 09:42:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshinori Sato X-Patchwork-Id: 1586576 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: 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=) 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 bilbo.ozlabs.org (Postfix) with ESMTPS id 4JnNR532BZz9s8s for ; Mon, 31 Jan 2022 20:43:13 +1100 (AEDT) Received: from localhost ([::1]:54604 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nETDJ-0001Bo-M6 for incoming@patchwork.ozlabs.org; Mon, 31 Jan 2022 04:43:09 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42972) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nETCX-0001AH-Nl for qemu-devel@nongnu.org; Mon, 31 Jan 2022 04:42:21 -0500 Received: from mail11.asahi-net.or.jp ([202.224.55.51]:41692) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nETCV-0000vS-OD for qemu-devel@nongnu.org; Mon, 31 Jan 2022 04:42:21 -0500 Received: from sakura.ysato.name (ik1-413-38519.vs.sakura.ne.jp [153.127.30.23]) (Authenticated sender: PQ4Y-STU) by mail11.asahi-net.or.jp (Postfix) with ESMTPA id DB9FF209B0; Mon, 31 Jan 2022 18:42:15 +0900 (JST) Received: from SIOS1075.ysato.name (ZM005235.ppp.dion.ne.jp [222.8.5.235]) by sakura.ysato.name (Postfix) with ESMTPSA id 34D521C0023; Mon, 31 Jan 2022 18:42:15 +0900 (JST) From: Yoshinori Sato To: qemu-devel@nongnu.org Subject: [PATCH] hw/rx: rx-gdbsim: DTB load address fix. Date: Mon, 31 Jan 2022 18:42:03 +0900 Message-Id: <20220131094203.772226-1-ysato@users.sourceforge.jp> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Received-SPF: softfail client-ip=202.224.55.51; envelope-from=ysato@users.sourceforge.jp; helo=mail11.asahi-net.or.jp X-Spam_score_int: -11 X-Spam_score: -1.2 X-Spam_bar: - X-Spam_report: (-1.2 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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: , Cc: Yoshinori Sato Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Linux kernel required alined address of DTB. But missing align in dtb load function. Fixed to load to the correct address. Signed-off-by: Yoshinori Sato --- hw/rx/rx-gdbsim.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/rx/rx-gdbsim.c b/hw/rx/rx-gdbsim.c index 75d1fec6ca..f70472aeaf 100644 --- a/hw/rx/rx-gdbsim.c +++ b/hw/rx/rx-gdbsim.c @@ -143,6 +143,7 @@ static void rx_gdbsim_init(MachineState *machine) } /* DTB is located at the end of SDRAM space. */ dtb_offset = machine->ram_size - dtb_size; + dtb_offset &= ~0x0f; rom_add_blob_fixed("dtb", dtb, dtb_size, SDRAM_BASE + dtb_offset); /* Set dtb address to R1 */