From nobody Mon May 6 16:12:51 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1557003902; cv=none; d=zoho.com; s=zohoarc; b=XvM6OcBpFDRrveYyzfinFjcLrZ+Mi5XJChcj1pEaIH/Ao50Xtbs4g2fWtStOcH4koomBliDydc+9PsmBCYiXD0Ofi9SJkmt2TZhnLfT4ZTjXMuBYmu5czDTu7J0t5RVFvuoBpRZAuxa3nsYSAaRIE+bB04UxSJ/4aVQi61v9VzQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1557003902; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=+fYqCs5sUPiNHHzHDoxsSG+QXYH6mcG8D/Amsajt7mM=; b=X+GZy9vwND5u69dFkn9SUM7r5lOavy1Lgi86Mvnrya+hh9dqyUlHk5IG52pPf5csGxqEozjWBWOfgOiGAsNC4TEb6AJkotfNvLs+ceGnD7qfwi82X5L7tIKYPswZwyd+rCpmUebGc6GcvVL1JAHYWQ2n0QrNezOGrN1qqktK31E= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (209.51.188.17 [209.51.188.17]) by mx.zohomail.com with SMTPS id 1557003902902588.1306759793171; Sat, 4 May 2019 14:05:02 -0700 (PDT) Received: from localhost ([127.0.0.1]:32847 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hN1q2-0004oF-HK for importer@patchew.org; Sat, 04 May 2019 17:04:54 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42353) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hN1oG-0003rm-3A for qemu-devel@nongnu.org; Sat, 04 May 2019 17:03:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hN1oF-0004ak-3T for qemu-devel@nongnu.org; Sat, 04 May 2019 17:03:04 -0400 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]:38442) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hN1oE-0004a2-U2 for qemu-devel@nongnu.org; Sat, 04 May 2019 17:03:03 -0400 Received: by mail-wr1-x441.google.com with SMTP id k16so12176440wrn.5 for ; Sat, 04 May 2019 14:03:02 -0700 (PDT) Received: from localhost ([46.114.6.7]) by smtp.gmail.com with ESMTPSA id d6sm4174060wrp.9.2019.05.04.14.03.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 04 May 2019 14:03:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=+fYqCs5sUPiNHHzHDoxsSG+QXYH6mcG8D/Amsajt7mM=; b=kWt6A9WWwlK0sO6LHCj83xye1QNGGZLFunKVHM2X7lQ1/9asHZiY4JVZtClm7dfk/P enpaDw703G5EIzOGYBYN9znWSf+mYPa2TPy4BbGScF76oc3uGhqh2MprrQFcAq7dQvYt j/ivqgVEs5IH9VreYmKK42TunCF6tL4JTmG1yqlvmUD1cQIJu4aBEPlaTuGjogCi58iJ Sc5zMXnAitNoDQn/rDxv3N0cm1bEXZ2ALTfdndwkRRyXvDsEDTnIK5j+IUVgig5mdqfb 5OQcKgIYfTapafL4WQ97P14sIGLbSfaUWE+wXH7QUfXn40+xPKO+8jLPMr2+7IouQtea dIxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=+fYqCs5sUPiNHHzHDoxsSG+QXYH6mcG8D/Amsajt7mM=; b=WTPjh9mkE/t0d9oemM0igH56hmPaArYCFlZJz+Ud+8P6fwKiDKp0QtAK26BNKVVGcu dRYyJnASSAjHeeMUEf//ljbWIyzd2T2b0KkjB/Ddyt465fPiiDbYXBki1B+427bildVE t+6/S5bFa+fXdhL/iwTK6W+9LQEg2ZEpO03brVrJkrP0Ddh6u9dNccF9DDY8vr420qtU UuNiU6QHV7EUEl35Ap/KusMl+3mPaTN7IgNv3gJL19C7JCBp4r1U44cJHiLaZ/nUoF+1 wN7/KTIRc2qOxl7E8AANRQeV80cfPjjaJDI93eIrZ+yk35RF4Tx0eVjmlm7fVBvaKz/y mRVA== X-Gm-Message-State: APjAAAUR/2YRf3GSVCmdhrqIHPPoT12yoG4UlBqaq+m1yd0+jzYwymK+ 3qg3INav9d3Xlu5ctHuqPc/+h28h X-Google-Smtp-Source: APXvYqxreqz+an6Kx9RFFTcFX7fstY7tv7/vXXRpmbdC7sPmpD4h+3OJ0JytPEqcjcrTsIPO2rfGpw== X-Received: by 2002:adf:dd89:: with SMTP id x9mr11311355wrl.8.1557003781938; Sat, 04 May 2019 14:03:01 -0700 (PDT) From: Artyom Tarasenko To: qemu-devel@nongnu.org, hpoussin@reactos.org Date: Sat, 4 May 2019 23:02:32 +0200 Message-Id: <1557003754-26473-2-git-send-email-atar4qemu@gmail.com> X-Mailer: git-send-email 2.7.2 In-Reply-To: <1557003754-26473-1-git-send-email-atar4qemu@gmail.com> References: <1557003754-26473-1-git-send-email-atar4qemu@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::441 Subject: [Qemu-devel] [PATCH v2 1/3] lsi53c895a: hide 53c895a registers in 53c810 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: Fam Zheng , Paolo Bonzini , Artyom Tarasenko Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" AIX/PReP does access to the aliased IO registers of 53810. Implement aliasing to make the AIX driver work. Signed-off-by: Artyom Tarasenko --- hw/scsi/lsi53c895a.c | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/hw/scsi/lsi53c895a.c b/hw/scsi/lsi53c895a.c index da7239d..6b95699 100644 --- a/hw/scsi/lsi53c895a.c +++ b/hw/scsi/lsi53c895a.c @@ -2271,6 +2271,9 @@ static void lsi_scsi_realize(PCIDevice *dev, Error **= errp) LSIState *s =3D LSI53C895A(dev); DeviceState *d =3D DEVICE(dev); uint8_t *pci_conf; + uint64_t mmio_size; + MemoryRegion *mr; + uint16_t type =3D PCI_DEVICE_GET_CLASS(dev)->device_id; =20 pci_conf =3D dev->config; =20 @@ -2279,13 +2282,21 @@ static void lsi_scsi_realize(PCIDevice *dev, Error = **errp) /* Interrupt pin A */ pci_conf[PCI_INTERRUPT_PIN] =3D 0x01; =20 - memory_region_init_io(&s->mmio_io, OBJECT(s), &lsi_mmio_ops, s, - "lsi-mmio", 0x400); memory_region_init_io(&s->ram_io, OBJECT(s), &lsi_ram_ops, s, "lsi-ram", 0x2000); memory_region_init_io(&s->io_io, OBJECT(s), &lsi_io_ops, s, "lsi-io", 256); - + if (type =3D=3D PCI_DEVICE_ID_LSI_53C895A) { + mmio_size =3D 0x400; + } else { + mr =3D g_new(MemoryRegion, 1); + memory_region_init_alias(mr, OBJECT(d), "lsi-io-alias", &s->io_io, + 0, 0x80); + memory_region_add_subregion_overlap(&s->io_io, 0x80, mr, -1); + mmio_size =3D 0x80; + } + memory_region_init_io(&s->mmio_io, OBJECT(s), &lsi_mmio_ops, s, + "lsi-mmio", mmio_size); address_space_init(&s->pci_io_as, pci_address_space_io(dev), "lsi-pci-= io"); qdev_init_gpio_out(d, &s->ext_irq, 1); =20 --=20 2.7.2 From nobody Mon May 6 16:12:51 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1557003902; cv=none; d=zoho.com; s=zohoarc; b=TyLh5KBTriyLmNupyTbflJfIQywPfCHUc3kgkheNThW8daUyZYBzR02Y2Ic5xw199/6vbp6k8Y4mJ4lehCwnKfCFdOSH4pLXoCOfWBKTLa0Ved6C9he/abRfQNuXwTfE+cJurLs4Rz5NtQak5n1aGE7+P2/pELOhrPvXY/QXucc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1557003902; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=O8KrwKkFlyf9Fo/o8AuY7bvoRhwFJvmFsOOmHrvIPIM=; b=Uir9toutIBsrLzjMji9xY+3ZhqK+e8MuRTsnyu6c/v3gZu9Ty4VRU6Ywf8mG+3QGJlAZMAjm2SURjcX2kY+45yVmcKrRjd32aHSqgWucvQJrdovsmEa/6QKKrrqpxm8ymrX8OC4Ndf2/IRnXgB9TQDDL5ewz6ifWYJcBH4knvZo= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (209.51.188.17 [209.51.188.17]) by mx.zohomail.com with SMTPS id 155700390239932.52663047729925; Sat, 4 May 2019 14:05:02 -0700 (PDT) Received: from localhost ([127.0.0.1]:32849 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hN1q4-0004qF-Cl for importer@patchew.org; Sat, 04 May 2019 17:04:56 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42367) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hN1oI-0003sM-9x for qemu-devel@nongnu.org; Sat, 04 May 2019 17:03:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hN1oH-0004ce-Bp for qemu-devel@nongnu.org; Sat, 04 May 2019 17:03:06 -0400 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]:33931) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hN1oH-0004c0-5V; Sat, 04 May 2019 17:03:05 -0400 Received: by mail-wr1-x443.google.com with SMTP id f7so1836911wrq.1; Sat, 04 May 2019 14:03:05 -0700 (PDT) Received: from localhost ([46.114.6.7]) by smtp.gmail.com with ESMTPSA id w10sm5436589wrv.90.2019.05.04.14.03.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 04 May 2019 14:03:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=O8KrwKkFlyf9Fo/o8AuY7bvoRhwFJvmFsOOmHrvIPIM=; b=bKYCBToEgd/UUd8dMqndb/J6K1pj+kX65YEdWJeX0fdIUzDO/SjvvrGFi8KteUudhq wtqlu8ULd2AJIZ+NkgcP+mXGG7V3WpZX4AcoFasp66LMwBT/qSSNHU+djJXzxGRHPIgk 0ApyzxD78NsR7vniFZx3e3MiDbVSfjLINnBaXI99vPhf90HSH9clEObuxsdfjySnBWlJ WI+LMrkGU0spMOpHIVKrQ+UvRY5tw9kmZAcQVxAt5JZ1+7n6zOGHdS7o98HJfStA/tYp SoIYcXM5E+3tLWnZE61E/tgr0jOZcEnTNVRzUBVm7q5EIorXhAIugJtakAp0BolwYf8N zpWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=O8KrwKkFlyf9Fo/o8AuY7bvoRhwFJvmFsOOmHrvIPIM=; b=QAlsDDwDorlKU93wPCSTmCrzUhdj/+MLggo4W7KRCIsjT0w/blmEDMykuAyf3OJsVx qAWdRTwuZ+ebKmMkHV39ZIcehJ+JcRMWvpNG0HPUZeaT6lKbrt/4B8WmpSIPZNzaIapf WIEWLew0q+q4ivVEiMokm+lNroQlXq85yswxiEVfjmuxDcMf7zwbJ7JKd5Ny3fIMe7qH F3zIXo75EpXKrnoWtCdnvpdGCXBVpBrr2wmKqtMuf4LnMeclQOtGZfGeRqno+QZmYEE8 6lTRrLG/ALkDQAdD1OlNB8Hl4KjTbeNY46Et71E84eoHbyjgWRA1bzhXEFahRqPjW6Yi 6ASA== X-Gm-Message-State: APjAAAXHixDlR3d2p8c9q9fT9IPLUEL+6lXJFo3cmBM0vombCm3SAdeu BeoTWgKI/eq+1Dgzfy3XSH5gsQsg X-Google-Smtp-Source: APXvYqxpRvxTubySKUudZe21nP3YO7Mi9Rx5p4M1JIQdyJ3gId6EP29lbcuboicllpbDJTMizxpeXQ== X-Received: by 2002:adf:fb11:: with SMTP id c17mr11992209wrr.237.1557003783958; Sat, 04 May 2019 14:03:03 -0700 (PDT) From: Artyom Tarasenko To: qemu-devel@nongnu.org, hpoussin@reactos.org Date: Sat, 4 May 2019 23:02:33 +0200 Message-Id: <1557003754-26473-3-git-send-email-atar4qemu@gmail.com> X-Mailer: git-send-email 2.7.2 In-Reply-To: <1557003754-26473-1-git-send-email-atar4qemu@gmail.com> References: <1557003754-26473-1-git-send-email-atar4qemu@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::443 Subject: [Qemu-devel] [PATCH 2/3] 40p and prep: implement PCI bus mastering 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: "open list:PReP" , Artyom Tarasenko Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Signed-off-by: Artyom Tarasenko Reviewed-by: Herv=C3=A9 Poussineau --- hw/pci-host/prep.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/hw/pci-host/prep.c b/hw/pci-host/prep.c index 8b9e1fd..94b7465 100644 --- a/hw/pci-host/prep.c +++ b/hw/pci-host/prep.c @@ -62,6 +62,7 @@ typedef struct PRePPCIState { AddressSpace pci_io_as; MemoryRegion pci_io; MemoryRegion pci_io_non_contiguous; + MemoryRegion pci_io_system; MemoryRegion pci_memory; MemoryRegion pci_intack; MemoryRegion bm; @@ -146,7 +147,7 @@ static uint64_t raven_io_read(void *opaque, hwaddr addr, uint8_t buf[4]; =20 addr =3D raven_io_address(s, addr); - address_space_read(&s->pci_io_as, addr + 0x80000000, + address_space_read(&s->pci_io_as, addr, MEMTXATTRS_UNSPECIFIED, buf, size); =20 if (size =3D=3D 1) { @@ -178,7 +179,7 @@ static void raven_io_write(void *opaque, hwaddr addr, g_assert_not_reached(); } =20 - address_space_write(&s->pci_io_as, addr + 0x80000000, + address_space_write(&s->pci_io_as, addr, MEMTXATTRS_UNSPECIFIED, buf, size); } =20 @@ -276,14 +277,21 @@ static void raven_pcihost_initfn(Object *obj) MemoryRegion *address_space_mem =3D get_system_memory(); DeviceState *pci_dev; =20 - memory_region_init(&s->pci_io, obj, "pci-io", 0x3f800000); + memory_region_init(&s->pci_io, obj, "pci-io", UINT32_MAX); memory_region_init_io(&s->pci_io_non_contiguous, obj, &raven_io_ops, s, "pci-io-non-contiguous", 0x00800000); memory_region_init(&s->pci_memory, obj, "pci-memory", 0x3f000000); address_space_init(&s->pci_io_as, &s->pci_io, "raven-io"); =20 /* CPU address space */ - memory_region_add_subregion(address_space_mem, 0x80000000, &s->pci_io); + memory_region_add_subregion_overlap(address_space_mem, 0x0, + &s->pci_io, -1); + + memory_region_init_alias(&s->pci_io_system, obj, "pci-io-system", + &s->pci_io, 0x0000000, 0x3f800000); + + memory_region_add_subregion(address_space_mem, 0x80000000, + &s->pci_io_system); memory_region_add_subregion_overlap(address_space_mem, 0x80000000, &s->pci_io_non_contiguous, 1); memory_region_add_subregion(address_space_mem, 0xc0000000, &s->pci_mem= ory); --=20 2.7.2 From nobody Mon May 6 16:12:51 2024 Delivered-To: importer@patchew.org Received-SPF: temperror (zoho.com: Error in retrieving data from DNS) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=temperror (zoho.com: Error in retrieving data from DNS) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1557004020; cv=none; d=zoho.com; s=zohoarc; b=jb6KlSCE9+Qw08xNUWEGHxY8aCDAj27kxIy3N4EL7CC3hN5DCFsuYKVOibqTZnevYA4lEqNav6D+9OSmVNw8odu/k1nJYE56jKu/B9ZsE5KKhfT7dIp5ux8Z7idIzWklDiAdoY3/PprZwr8CBm59r/DPFQQGce/xpYv7HntlfL4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1557004020; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=Yjawb15ilcgBDz3rr0CkGUbs4QxWlVrQBeuf1ek1VNA=; b=Dr1rB8aOzFsn75kh1IrjXAG3J/RZgEdrOj7MmgJdQtOlIGTwDo7O1n6P4Mn5xqLdhG3Rxqfaogo+xMr8jAEK5GgR+wYNLm9sEClvagW+te7EXN8JUyLQ7bt5nWDVnNmug0iAicletU5We6XZ69OD79raM62Ypqqr6D3EQBPZVX0= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=temperror (zoho.com: Error in retrieving data from DNS) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1557004020925731.1598204843358; Sat, 4 May 2019 14:07:00 -0700 (PDT) Received: from localhost ([127.0.0.1]:32898 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hN1rr-0006Sg-Pm for importer@patchew.org; Sat, 04 May 2019 17:06:47 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42386) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hN1oJ-0003tZ-Oj for qemu-devel@nongnu.org; Sat, 04 May 2019 17:03:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hN1oI-0004dw-PH for qemu-devel@nongnu.org; Sat, 04 May 2019 17:03:07 -0400 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]:33086) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hN1oI-0004d8-JW; Sat, 04 May 2019 17:03:06 -0400 Received: by mail-wr1-x443.google.com with SMTP id e28so12211776wra.0; Sat, 04 May 2019 14:03:06 -0700 (PDT) Received: from localhost ([46.114.6.7]) by smtp.gmail.com with ESMTPSA id t24sm14856936wra.58.2019.05.04.14.03.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 04 May 2019 14:03:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Yjawb15ilcgBDz3rr0CkGUbs4QxWlVrQBeuf1ek1VNA=; b=L7w8RtS5d1HSXcKSoAYq2jtc1aPMkU3zl4j5gPuP84F4YQBfgO3PBYqHivfmG9Cj0N VthgyJjKr5VXUchlNw12yBWUFfHaaQvxunweu68eITskG5pzo7K/ygVe24crBXQgMsQr KDPnmYlBMchIoZEHvzyvToh/JjNYznhpqAbrCBk/0V2Cr7Ek/cbha3uwwrQ31+SlR+Th +6Yf1CJCDA17Z/FDjjxr/OnDJEmevcYnSj/rX9bzQf4rML2vIkUNDQMhCOlhUu29e0sO FOuxsnEmH3iFfLeTMhLCD7bzoLnEWlTHINPyVlYxSVX7Tb/ayeVCC+gCfVRJ9qdFfQNT r0Kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Yjawb15ilcgBDz3rr0CkGUbs4QxWlVrQBeuf1ek1VNA=; b=qjJCn+BUONJqmX5YipHQR06k+/3Y/kydsFQpaLxsbPCsrYLpl9aKoBxIVneN8EI4RJ LwLXTKa9jOjiNEmwvVxW2ohFFTdIJ34fwxvMYo0/fBU0RmoLPYq337GKYLUuuJqWvcOo WtoApGhQIW8SGm6BsH4m+nDyEX0dF8hHjBnp9V60RSsm/9NyWzWjjx52/Pm5SAxcOeOh y454yvb8CQ/63lug3uWikA/oOumZh0r9J0bZ8lY2Vdk62CsD7XmcKVmbe0gO7V2WJw3k N02yvbuMK6h+VKArTKN9ZI0VUSpkmC//UhF4wBVmQN+ZkhE+SIQd2KEZHkKRo8+6LsHv Glwg== X-Gm-Message-State: APjAAAXxoaXe8jAaDMqsCHFyFnLVbxOwJZsqXS2hEN0FdlyAOO1ygTeO SFlSHCbXFZ1PS0qT7X3ug7XQOrdC X-Google-Smtp-Source: APXvYqzyaD2WuOegJroeaVNSqkzOSiGv5b6YX4R2hRTuTgjLYIrrrHEYUMJ25cKW0iNm5hhaFxGtsQ== X-Received: by 2002:adf:f051:: with SMTP id t17mr11507304wro.73.1557003785613; Sat, 04 May 2019 14:03:05 -0700 (PDT) From: Artyom Tarasenko To: qemu-devel@nongnu.org, hpoussin@reactos.org Date: Sat, 4 May 2019 23:02:34 +0200 Message-Id: <1557003754-26473-4-git-send-email-atar4qemu@gmail.com> X-Mailer: git-send-email 2.7.2 In-Reply-To: <1557003754-26473-1-git-send-email-atar4qemu@gmail.com> References: <1557003754-26473-1-git-send-email-atar4qemu@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::443 Subject: [Qemu-devel] [PATCH v2 3/3] hw/isa/i82378.c: use 1900 as a base year 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: "open list:PReP" , Artyom Tarasenko Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) AIX 5.1 expects the base year to be 1900. Adjust accordingly. Signed-off-by: Artyom Tarasenko Reviewed-by: Herv=C3=A9 Poussineau --- hw/isa/i82378.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hw/isa/i82378.c b/hw/isa/i82378.c index a5d67bc..546c928 100644 --- a/hw/isa/i82378.c +++ b/hw/isa/i82378.c @@ -107,7 +107,9 @@ static void i82378_realize(PCIDevice *pci, Error **errp) isa =3D isa_create_simple(isabus, "i82374"); =20 /* timer */ - isa_create_simple(isabus, TYPE_MC146818_RTC); + isa =3D isa_create(isabus, TYPE_MC146818_RTC); + qdev_prop_set_int32(DEVICE(isa), "base_year", 1900); + qdev_init_nofail(DEVICE(isa)); } =20 static void i82378_init(Object *obj) --=20 2.7.2