From nobody Mon Feb 9 02:55:20 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1487524725934993.6938462459761; Sun, 19 Feb 2017 09:18:45 -0800 (PST) Received: from localhost ([::1]:34544 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cfV8G-0003ve-Jr for importer@patchew.org; Sun, 19 Feb 2017 12:18:44 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36580) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cfV3R-0000Bg-NR for qemu-devel@nongnu.org; Sun, 19 Feb 2017 12:13:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cfV3M-0008Om-PS for qemu-devel@nongnu.org; Sun, 19 Feb 2017 12:13:45 -0500 Received: from zero.eik.bme.hu ([152.66.115.2]:63600) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cfV3M-0008Nu-HU for qemu-devel@nongnu.org; Sun, 19 Feb 2017 12:13:40 -0500 Received: from zero.eik.bme.hu (blah.eik.bme.hu [152.66.115.182]) by localhost (Postfix) with SMTP id 6DEE2745955; Sun, 19 Feb 2017 18:03:39 +0100 (CET) Received: by zero.eik.bme.hu (Postfix, from userid 432) id 2845E74595E; Sun, 19 Feb 2017 18:03:39 +0100 (CET) Message-Id: In-Reply-To: References: From: BALATON Zoltan Date: Sun, 19 Feb 2017 17:35:23 +0100 To: qemu-devel@nongnu.org, qemu-trivial@nongnu.org X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-Received-From: 152.66.115.2 Subject: [Qemu-devel] [PATCH 05/10] sm501: Add missing arbitration control register X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Aurelien Jarno Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Signed-off-by: BALATON Zoltan --- hw/display/sm501.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hw/display/sm501.c b/hw/display/sm501.c index e966896..9091bb5 100644 --- a/hw/display/sm501.c +++ b/hw/display/sm501.c @@ -474,6 +474,7 @@ typedef struct SM501State { uint32_t gpio_31_0_control; uint32_t gpio_63_32_control; uint32_t dram_control; + uint32_t arbitration_control; uint32_t irq_mask; uint32_t misc_timing; uint32_t power_mode_control; @@ -757,6 +758,9 @@ static uint64_t sm501_system_config_read(void *opaque, = hwaddr addr, case SM501_DRAM_CONTROL: ret =3D (s->dram_control & 0x07F107C0) | s->local_mem_size_index <= < 13; break; + case SM501_ARBTRTN_CONTROL: + ret =3D s->arbitration_control; + break; case SM501_IRQ_MASK: ret =3D s->irq_mask; break; @@ -809,6 +813,9 @@ static void sm501_system_config_write(void *opaque, hwa= ddr addr, /* TODO : check validity of size change */ s->dram_control |=3D value & 0x7FFFFFC3; break; + case SM501_ARBTRTN_CONTROL: + s->arbitration_control =3D value & 0x37777777; + break; case SM501_IRQ_MASK: s->irq_mask =3D value; break; --=20 2.7.4