From nobody Tue Feb 10 11:56:31 2026 Delivered-To: importer@patchew.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; dmarc=fail(p=none dis=none) header.from=amsat.org ARC-Seal: i=1; a=rsa-sha256; t=1590830676; cv=none; d=zohomail.com; s=zohoarc; b=GvQUYCfliy3DmiiZdXjGSOenjuYykGhp7yXnp6NyGa0s9TWozizPoQLs0igAD+XPV7ZR8OEOCcURECEdH/z/vU+K4E7QQHThweSb9wNlVpIU3MsMcjH2tYT1Uwlksqk6JCPdiSM/PpYaYdY10UEX+ULMYLebV0jvCfeaKALScQ4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1590830676; 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=u9uKPWNzNLOY7VTU1g9/yQJr0QmghdK+v0pLVKAdyqA=; b=Ai9QHq4GfrMe+sZYd8k9VGfcOCsA7+DzpPuyg+c57AA3vLTDgTOVXvMncOoBWZxc+2mWUTHlCF50M8GTvzZmN2fbGYq4C+hL61nKuPj5+oGsMpRv3vdxTubPr/LjY6Uv8FszQd1klKLWpIgnmw7wjA7g+7LUpS+qi+FWNgeyIo4= 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; 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 1590830676693225.37481074166737; Sat, 30 May 2020 02:24:36 -0700 (PDT) Received: from localhost ([::1]:58190 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jexjH-0004Qn-8V for importer@patchew.org; Sat, 30 May 2020 05:24:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48970) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jexhx-0001qr-1z; Sat, 30 May 2020 05:23:13 -0400 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]:35798) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jexhw-00073A-BS; Sat, 30 May 2020 05:23:12 -0400 Received: by mail-wm1-x341.google.com with SMTP id n5so6510622wmd.0; Sat, 30 May 2020 02:23:11 -0700 (PDT) Received: from localhost.localdomain (43.red-83-51-162.dynamicip.rima-tde.net. [83.51.162.43]) by smtp.gmail.com with ESMTPSA id h1sm3195237wme.42.2020.05.30.02.23.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 May 2020 02:23:09 -0700 (PDT) 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=u9uKPWNzNLOY7VTU1g9/yQJr0QmghdK+v0pLVKAdyqA=; b=LTkc8BAYub/Ld4tGrsO4OC29y7x1KWlURfXZ9dG3ytcT0cMyoERYpxYfzP6ntoKzeN bEpfB1SEDwg+1UgOlonaoFVrO3ipsclZJEbOT9jdLeodHkhmcpYBEN5nrlTywe6JmWwe KRSzF7EV8pxlibThLPW/c6CZB9xPPqUghHmnpZyQQBUAyVUrNkpim4i6ZX8sBae2Ixt1 baQW0ha/Z5l8OGJAN8lLOeg5wam10vMe6y6S/8wPrmWlir4lS4UgrkOwNZcZYe18a1Z5 LezSZmQUFMbAqENwFGAw9BANyvuzWzOUO1Z7h6GrPHzcc0xfytllOGX8TXcHNUGetuNa cJDw== 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=u9uKPWNzNLOY7VTU1g9/yQJr0QmghdK+v0pLVKAdyqA=; b=bMwG+SucOVpoD7M9kRjZYHIpLfONceilgaDBXJ7XKH1zwdcK6nHMaq9woujV1CymRq V+3ZGIE6Pur2h64j5KMhtDarmcDEuAl8W4ONKWvrutSLcOR1ejPfdxEmJlpl/6B4x0yp ym79dw8tDkGTrbkbmhTVGv0nIg4R0iN3atfS7EIsoV/+dqCsV/Q4+vNBewT8llu/fsh2 u0GDU5NtdfBxEIqmsnUW4TKzes/0+ynv7lkkXF50mnUMtDmTamKjXyjm1VdKHWbmmZHh f5XfKB4Se50C9ieVth0keCoe4B56kGTzmUg/TwzvrVm3xINmpXWfO7s1hP5ZKDiGUt2Y r62w== X-Gm-Message-State: AOAM533VtBCwZuVuoUoLLCGcg2rYTSGU9XJeNP2NZn0tGRhij95jRbz4 N3Mz4Nggn6xKxOBtcKYPwoP5Rq9M X-Google-Smtp-Source: ABdhPJzqW2TQjq+NPfkGDGPHhrsrwqhWELjOVorbfgB/3oV3oHASy5uWNoMeOjrIZoO8xC9SDj5Vxw== X-Received: by 2002:a1c:6056:: with SMTP id u83mr2296838wmb.138.1590830590337; Sat, 30 May 2020 02:23:10 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH 1/5] hw/sh4: Use MemoryRegion typedef Date: Sat, 30 May 2020 11:23:02 +0200 Message-Id: <20200530092306.26628-2-f4bug@amsat.org> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200530092306.26628-1-f4bug@amsat.org> References: <20200530092306.26628-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 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; Received-SPF: pass client-ip=2a00:1450:4864:20::341; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wm1-x341.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action 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: Fam Zheng , qemu-trivial@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Magnus Damm , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Richard Henderson , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Aurelien Jarno Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Use the MemoryRegion type defined in "qemu/typedefs.h", to keep the repository style consistent. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson Message-Id: <20200504081653.14841-2-f4bug@amsat.org> --- include/hw/sh4/sh.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/hw/sh4/sh.h b/include/hw/sh4/sh.h index 767a2df7e2..fe773cb01d 100644 --- a/include/hw/sh4/sh.h +++ b/include/hw/sh4/sh.h @@ -10,9 +10,8 @@ =20 /* sh7750.c */ struct SH7750State; -struct MemoryRegion; =20 -struct SH7750State *sh7750_init(SuperHCPU *cpu, struct MemoryRegion *sysme= m); +struct SH7750State *sh7750_init(SuperHCPU *cpu, MemoryRegion *sysmem); =20 typedef struct { /* The callback will be triggered if any of the designated lines chang= e */ @@ -32,7 +31,7 @@ int sh7750_register_io_device(struct SH7750State *s, #define TMU012_FEAT_TOCR (1 << 0) #define TMU012_FEAT_3CHAN (1 << 1) #define TMU012_FEAT_EXTCLK (1 << 2) -void tmu012_init(struct MemoryRegion *sysmem, hwaddr base, +void tmu012_init(MemoryRegion *sysmem, hwaddr base, int feat, uint32_t freq, qemu_irq ch0_irq, qemu_irq ch1_irq, qemu_irq ch2_irq0, qemu_irq ch2_irq1); --=20 2.21.3