From patchwork Mon Jan 20 22:00:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 1226137 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=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=amsat.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=FeHUlVgt; 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 481m2g1BZkz9sPJ for ; Tue, 21 Jan 2020 09:06:03 +1100 (AEDT) Received: from localhost ([::1]:44614 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1itfBI-0005db-20 for incoming@patchwork.ozlabs.org; Mon, 20 Jan 2020 17:06:00 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:50999) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1itf6o-0001Z1-Hh for qemu-devel@nongnu.org; Mon, 20 Jan 2020 17:01:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1itf6n-0005q5-2s for qemu-devel@nongnu.org; Mon, 20 Jan 2020 17:01:22 -0500 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]:36869) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1itf6j-0005nT-NX for qemu-devel@nongnu.org; Mon, 20 Jan 2020 17:01:21 -0500 Received: by mail-wm1-x342.google.com with SMTP id f129so933061wmf.2 for ; Mon, 20 Jan 2020 14:01:17 -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=PgExqrTGwY7vrn4B1c+MG4krYS866xKGizW5SQhXiUI=; b=FeHUlVgt5lgtH4sYtv46yYy96b6RnMFqiCXToC4zAldQ6BDCp49Pcvcx3G4Zue8H3h 7qu5isu5R9hPYet1c0VW2TjvoJWeDYl9Tqdvtn00dNV8sBgZOsfZ0q2ehMLvZ4ZPmCUZ R8JKdl9wuCvqf1xkF6hZTZP7b2As5itfR7pmdiqS4nMVukIsdMMU0UkGymGZRWWGc9EF UsEDgoaoqYz8h5TKGiNWw+5FJE7DIf9vXYCSqxfZW6oA7hYiE4M51Ds82W2i5igSNNm2 6PZ0arLVbYURDLy94dNu1rBA61M5l5a/mnApSyk31lWKNXGnvHeWKXrvc4caujNkDGmU BhZw== 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=PgExqrTGwY7vrn4B1c+MG4krYS866xKGizW5SQhXiUI=; b=QnC/PdYmnFP7HrmjUM6bUTpxdlCLi09AB3xpPx6iy+aZ0oa4oftlukmZysR5C4wE+1 T+pSUmUZXfq9eHOGb1YXfh984nB7ThQnWGnsPQN8/SzMSs5Y1pkSvbVKOAem18VC3SaN l6Xx9pizgRNGbBvnJOaL8nzCTepppiL7R7xrJh+n+E4iv7lAilMUpaPfJ08srD6lVhai QvguVPlT2bAsAJFHZ78rSCCY9GPEg0DivTc6GL6V6LyuJFTP18NlWVDCgW4x+WZihR+f CS9zcr7cay3Jm2AL4IArjjbhhHdhrHaSTuSc6xVDga3kZRBeOV2vzYRNL7LooNTzi2f5 pS6A== X-Gm-Message-State: APjAAAXhnd/WExDuiL/Z5vy8sH/eWZA/ryAhC8Avg6V5dKHH7rmXLDIR TfqPXh8GXEi/+uQQ8ODi+o2KfI84 X-Google-Smtp-Source: APXvYqzUe3C0CkyTNZj1F30dRNwV6ahcZe8bINEMUphMigVFNuGU1QtMkBFXeDaVbM0bunH+L0iilQ== X-Received: by 2002:a05:600c:2108:: with SMTP id u8mr833358wml.183.1579557676673; Mon, 20 Jan 2020 14:01:16 -0800 (PST) Received: from x1w.redhat.com (113.red-83-57-172.dynamicip.rima-tde.net. [83.57.172.113]) by smtp.gmail.com with ESMTPSA id f1sm904341wmc.45.2020.01.20.14.01.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jan 2020 14:01:15 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v4 05/18] hw/char/avr: Reduce USART I/O size Date: Mon, 20 Jan 2020 23:00:54 +0100 Message-Id: <20200120220107.17825-6-f4bug@amsat.org> X-Mailer: git-send-email 2.21.1 In-Reply-To: <20200120220107.17825-1-f4bug@amsat.org> References: <20200120220107.17825-1-f4bug@amsat.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::342 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 , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?b?w6k=?= , Michael Rolnik , Paolo Bonzini , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Aleksandar Markovic , Richard Henderson Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Per the datasheet the USART uses 7 consecutive 8-bit registers. Signed-off-by: Philippe Mathieu-Daudé --- 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 cb307fe23d..becdb87847 100644 --- a/hw/char/avr_usart.c +++ b/hw/char/avr_usart.c @@ -280,7 +280,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, 7); sysbus_init_mmio(SYS_BUS_DEVICE(obj), &s->mmio); qdev_init_gpio_in(DEVICE(s), avr_usart_pr, 1); s->enabled = true;