From nobody Tue Feb 10 03:38:14 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.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 (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1574905959; cv=none; d=zohomail.com; s=zohoarc; b=hsJYD4tMYlBMNis9UEjUoBerUcHC6wgHfjCdc1aGlyF3UEc6iYHyTjU+cUJHieax3I7qmzxsMQYf75WHezlSDBJ4rgG0oM0p1Jey5ooNORdks+r+2IKOlSQ1VYHrRll7LnqyJdTdVZUla2lUU6DPlEHZ7/6JpZLEUdz7KP3o58w= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1574905959; 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; bh=jb2tbtaquf5VPvDAi0c6Lc2EAVperS+YrEI9rjM8y3s=; b=MbZMC3cNkVlRkWitqnK15f4vIuLHIvOm+9sSPQBrYn7oNsy5chIAvvWGFLnYIZlnNz54cAlZIJWr4TFurb1xYBnXm31gZR9sWzQZj7XkA597u9vNGDbZRqpXbnki8xnXe/B8tU8Dq+IDjsF8vPUF0lw4JHAuqT9DzoHMqa5zVlw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1574905959235468.64740915520326; Wed, 27 Nov 2019 17:52:39 -0800 (PST) Received: from localhost ([::1]:44650 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ia8yz-0007lP-Tq for importer@patchew.org; Wed, 27 Nov 2019 20:52:37 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52345) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ia8x9-00062h-Jy for qemu-devel@nongnu.org; Wed, 27 Nov 2019 20:50:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ia8x7-0004Ih-Ji for qemu-devel@nongnu.org; Wed, 27 Nov 2019 20:50:43 -0500 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]:35557) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ia8x7-0004HD-Dl for qemu-devel@nongnu.org; Wed, 27 Nov 2019 20:50:41 -0500 Received: by mail-wm1-x343.google.com with SMTP id n5so9963121wmc.0 for ; Wed, 27 Nov 2019 17:50:41 -0800 (PST) Received: from x1w.redhat.com (182.red-88-21-103.staticip.rima-tde.net. [88.21.103.182]) by smtp.gmail.com with ESMTPSA id k16sm8738061wru.0.2019.11.27.17.50.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Nov 2019 17:50:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=jb2tbtaquf5VPvDAi0c6Lc2EAVperS+YrEI9rjM8y3s=; b=p50P8t8KmQXkFd4gXWDe51BHDwBJQeIarz6PfZ7ZE4rJMcJuAJ6ckTovmFHNa4TvEk FGi2jtnZV8pu7egesd7HeK2vfE4UB2uIcNK95r/8Imb8hysTrgV5DELmWtgZQ9wNHdN6 nvVkTLaw8WwOj//4xC/a7/I29vOOaMHXWOp2MYrXoQ7iFY8usyFhbwcn3B60qQmmcBJf rx9u/ylfTyno66P7ATNHnk04HVrbP359AbXAxAqHX7r9Y9o2VVpmRwA5PZdParTJ3ejz cwB82d6WHaHfT/VfpTfELi1t7+7eWMUFKUQ2cw2dCJM9IyvNDip9IwrrZrjBg9ejCttT N4sA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=jb2tbtaquf5VPvDAi0c6Lc2EAVperS+YrEI9rjM8y3s=; b=iDckRlyfEBGb8bQFg3krRrTUSkC37Ltr5T6ASI1CNw8ZG/jqQJ7Yb5n99HRx9eTz/q 9laEO53R6e+VauE6qiBpZndWOtCQnxepEf9Sg8qQZtSOYG0Wt532epMXp/Map9iQ3qSY CMBCPRdSd0tWIQv7QS4OA6ruL76sNMgtVwGcaHe01MpbVS/oh5Mwv1lNYCT5FDs+QuXR CqMw7klYNpnaGPlmpgR+jplZE3MYaemGY/AeIVJ4hA50yYtPKfmIg6s03x1Vb5xyHedm dGvig5mYyrrJLD3Qj6bKXbwomaIoxZd0lpzAgB8GeaUwaDoT66VMP3QaZqheEqlgSwxm HwYQ== X-Gm-Message-State: APjAAAVTqd/LWgKkZtg3zbgTff0YWInNRvveh3x9ht4sDOZj1jjg75Nu 8yUC0wE/bZb6Orf+55Ado5pgfJRB X-Google-Smtp-Source: APXvYqxbBzJYE08XuYkn3WvaGb5yc4wXkxMSc4VG3aOGwn3uCVC4M/bILGZOMqQYPJzdhsY4sqSizQ== X-Received: by 2002:a1c:ed05:: with SMTP id l5mr7471477wmh.161.1574905840352; Wed, 27 Nov 2019 17:50:40 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org, Michael Rolnik Subject: [RFC PATCH 05/10] hw/char/avr: Reduce USART I/O size Date: Thu, 28 Nov 2019 02:50:25 +0100 Message-Id: <20191128015030.27543-6-f4bug@amsat.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191128015030.27543-1-f4bug@amsat.org> References: <20191128015030.27543-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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::343 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: , Cc: Sarah Harris , Igor Mammedov , Thomas Huth , Joaquin de Andres , Richard Henderson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pavel Dovgalyuk , Paolo Bonzini , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Aleksandar Markovic Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Per the datasheet the USART uses 6 consecutive 8-bit registers. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/char/avr_usart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/char/avr_usart.c b/hw/char/avr_usart.c index d039689c56..ba17bdd470 100644 --- a/hw/char/avr_usart.c +++ b/hw/char/avr_usart.c @@ -284,7 +284,7 @@ static void avr_usart_init(Object *obj) sysbus_init_irq(SYS_BUS_DEVICE(obj), &s->rxc_irq); sysbus_init_irq(SYS_BUS_DEVICE(obj), &s->dre_irq); sysbus_init_irq(SYS_BUS_DEVICE(obj), &s->txc_irq); - memory_region_init_io(&s->mmio, obj, &avr_usart_ops, s, TYPE_AVR_USART= , 8); + memory_region_init_io(&s->mmio, obj, &avr_usart_ops, s, TYPE_AVR_USART= , 6); sysbus_init_mmio(SYS_BUS_DEVICE(obj), &s->mmio); qdev_init_gpio_in(DEVICE(s), avr_usart_pr, 1); s->enabled =3D true; --=20 2.21.0