From nobody Sun Nov 24 09:27:37 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1725460695; cv=none; d=zohomail.com; s=zohoarc; b=bSKvIGuKl//bcnbAzIilfIrNHd7fZN8qDDn99XTJy2M7vCoMqafA8yqXsLFpofVyrROJjsL8R+EAKXGDdQlRKeD+1+Q6V7OTeiwpO+BJJUSTqJTYoEYopiNav+lKsS73bYpdQ27ufYBg+EaembTyv9MzpjTVu1HwoSevtWnSz1M= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1725460695; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=+snwtMwBnQ2rgX3cu2mibkO7hMLpDDn6qx8uFI+9Y7c=; b=HN01BfVGWjkt2dz5K0o0omkYolCpYJTxYi/crXMECKroGYav0KtelSEOXmqLDJs1TkG0Ego/GNyg9jxOUJXoqiFBoL1q0Lh5ofq6NknO/esmeo2klr6fEjxqN/14NzxCDcSw03uXp+/42xtHQX+WKquY9CR5iF024Xy3KJRrLQY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1725460695358196.28689248018168; Wed, 4 Sep 2024 07:38:15 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1slr8x-0002N1-Pa; Wed, 04 Sep 2024 10:37:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1slr8v-0001o6-JV for qemu-devel@nongnu.org; Wed, 04 Sep 2024 10:37:57 -0400 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1slr8s-0005WS-Ua for qemu-devel@nongnu.org; Wed, 04 Sep 2024 10:37:57 -0400 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-42c7a49152aso48568495e9.2 for ; Wed, 04 Sep 2024 07:37:54 -0700 (PDT) Received: from localhost.localdomain (56.red-95-127-44.staticip.rima-tde.net. [95.127.44.56]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42bb6e367b3sm204605385e9.48.2024.09.04.07.37.50 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 04 Sep 2024 07:37:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1725460673; x=1726065473; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=+snwtMwBnQ2rgX3cu2mibkO7hMLpDDn6qx8uFI+9Y7c=; b=tudKBCA7X2MhYS6qnzu4Ndr0U+Hn2KaoAAmR8GqdMfHh/qJZqdAvlbqqWWbyS/dfDJ 4UqgoLQ8V2LlXG8EE+vVANhJ+TmKrEIiK8EPqvr/Ni8wFIn02GNNImUrPBnn4PRStwFS yv44pjouYLr2DwBDnIOUiGid4PpgtonqIOnUbje87FPc4GQNrzmoVWZQNYPQOcWoQuRO XOHF+5wFXDqYz7TH1B5Mn07da8P3nIvnmPUGvdPMDkmfc29wb6wnG6ou9cAeOkdrAkYt sMNLC05XZ0ltQgJ3UtCj3UHpdz1Y4TNbf6gIRjSIy7XIl/FMNGd9XqNq3WroobCjKe9W lSYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725460673; x=1726065473; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+snwtMwBnQ2rgX3cu2mibkO7hMLpDDn6qx8uFI+9Y7c=; b=sCTW7JmIwydjkMK8CG4mRer+VlFTtaK0iZQCl3LtX5WMEURV5p0JM1OoL43Q3y1GSt 6ju21+m4aIXOGf9qrdEK9tsJ22zcxit2mqz0EBFNyQr0EQW5rrJT4V1r7GyPXuQrr++S SYmfes+ncxRR+Y4Jz/kaGMqD2Kkd9O5gCEGYHwA/SGOHPT02s+j0XWs9L2XtB6lVHLPq CCfo3YteYDiPX4+jullkz41bx63JcJqPLMCyl6wVBehn+U9axXBTGhzcUMYcxcjQEfgg l69DUJRxNoiztYNvsWfuGfdDt0E/a7K41lXxt7rsdLOg8LkWJk40YVPWS80unzCj8YvL RXzQ== X-Forwarded-Encrypted: i=1; AJvYcCVnKmC5XSMVyLbOhn6S+2cxTvMW+rTv2EyV9Jbap3vVaV68Wt7Uk7iZFbb/Mk9kTDvH9Uo2Tpo2GF09@nongnu.org X-Gm-Message-State: AOJu0YxLOAQo8IKRjCQYVfTl3+OiS/zEN4/dn9KuoA2hGzzLJS4RhNeG 9zJrskof29FDRWA8BeA5UrUh+C8daf1aWClO8N9isKdnsHdWP/S5QrHsNjGtqn4= X-Google-Smtp-Source: AGHT+IFn51Dat7Rknk8bBG/U3yuPsJjUaR4VwkmvqzSeW6sTHGSc1GoWxFfSQcLfzfbzujGDrFK3yQ== X-Received: by 2002:a05:600c:1914:b0:428:e820:37b6 with SMTP id 5b1f17b1804b1-42bb020b3e6mr189578955e9.31.1725460673132; Wed, 04 Sep 2024 07:37:53 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: "Edgar E . Iglesias" , qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , Laurent Vivier , Riku Voipio , Peter Maydell , Thomas Huth , devel@lists.libvirt.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH v2 11/15] hw/timer: Remove TYPE_ETRAX_FS_TIMER device Date: Wed, 4 Sep 2024 16:35:59 +0200 Message-ID: <20240904143603.52934-12-philmd@linaro.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240904143603.52934-1-philmd@linaro.org> References: <20240904143603.52934-1-philmd@linaro.org> MIME-Version: 1.0 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::332; envelope-from=philmd@linaro.org; helo=mail-wm1-x332.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1725460696552116600 We just removed the single machine using it (axis-dev88). Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Thomas Huth --- MAINTAINERS | 8 - hw/timer/etraxfs_timer.c | 407 ---------------------------- hw/Kconfig | 1 - hw/cris/Kconfig | 3 - hw/timer/meson.build | 1 - scripts/coverity-scan/COMPONENTS.md | 2 +- 6 files changed, 1 insertion(+), 421 deletions(-) delete mode 100644 hw/timer/etraxfs_timer.c delete mode 100644 hw/cris/Kconfig diff --git a/MAINTAINERS b/MAINTAINERS index 7b2860e9a8..492c7aa641 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -228,7 +228,6 @@ CRIS TCG CPUs M: Edgar E. Iglesias S: Maintained F: target/cris/ -F: hw/cris/ F: disas/cris.c =20 Hexagon TCG CPUs @@ -1207,13 +1206,6 @@ M: Philippe Mathieu-Daud=C3=A9 S: Maintained F: hw/avr/arduino.c =20 -CRIS Machines -------------- -Etrax hardware -M: Edgar E. Iglesias -S: Maintained -F: hw/*/etraxfs_*.c - HP-PARISC Machines ------------------ HP B160L, HP C3700 diff --git a/hw/timer/etraxfs_timer.c b/hw/timer/etraxfs_timer.c deleted file mode 100644 index dd6d96b0a1..0000000000 --- a/hw/timer/etraxfs_timer.c +++ /dev/null @@ -1,407 +0,0 @@ -/* - * QEMU ETRAX Timers - * - * Copyright (c) 2007 Edgar E. Iglesias, Axis Communications AB. - * - * Permission is hereby granted, free of charge, to any person obtaining a= copy - * of this software and associated documentation files (the "Software"), t= o deal - * in the Software without restriction, including without limitation the r= ights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or se= ll - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included= in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS= OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OT= HER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING= FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS = IN - * THE SOFTWARE. - */ - -#include "qemu/osdep.h" -#include "hw/sysbus.h" -#include "sysemu/reset.h" -#include "sysemu/runstate.h" -#include "migration/vmstate.h" -#include "qemu/module.h" -#include "qemu/timer.h" -#include "hw/irq.h" -#include "hw/ptimer.h" -#include "qom/object.h" - -#define D(x) - -#define RW_TMR0_DIV 0x00 -#define R_TMR0_DATA 0x04 -#define RW_TMR0_CTRL 0x08 -#define RW_TMR1_DIV 0x10 -#define R_TMR1_DATA 0x14 -#define RW_TMR1_CTRL 0x18 -#define R_TIME 0x38 -#define RW_WD_CTRL 0x40 -#define R_WD_STAT 0x44 -#define RW_INTR_MASK 0x48 -#define RW_ACK_INTR 0x4c -#define R_INTR 0x50 -#define R_MASKED_INTR 0x54 - -#define TYPE_ETRAX_FS_TIMER "etraxfs-timer" -typedef struct ETRAXTimerState ETRAXTimerState; -DECLARE_INSTANCE_CHECKER(ETRAXTimerState, ETRAX_TIMER, - TYPE_ETRAX_FS_TIMER) - -struct ETRAXTimerState { - SysBusDevice parent_obj; - - MemoryRegion mmio; - qemu_irq irq; - qemu_irq nmi; - - ptimer_state *ptimer_t0; - ptimer_state *ptimer_t1; - ptimer_state *ptimer_wd; - - uint32_t wd_hits; - - /* Control registers. */ - uint32_t rw_tmr0_div; - uint32_t r_tmr0_data; - uint32_t rw_tmr0_ctrl; - - uint32_t rw_tmr1_div; - uint32_t r_tmr1_data; - uint32_t rw_tmr1_ctrl; - - uint32_t rw_wd_ctrl; - - uint32_t rw_intr_mask; - uint32_t rw_ack_intr; - uint32_t r_intr; - uint32_t r_masked_intr; -}; - -static const VMStateDescription vmstate_etraxfs =3D { - .name =3D "etraxfs", - .version_id =3D 0, - .minimum_version_id =3D 0, - .fields =3D (const VMStateField[]) { - VMSTATE_PTIMER(ptimer_t0, ETRAXTimerState), - VMSTATE_PTIMER(ptimer_t1, ETRAXTimerState), - VMSTATE_PTIMER(ptimer_wd, ETRAXTimerState), - - VMSTATE_UINT32(wd_hits, ETRAXTimerState), - - VMSTATE_UINT32(rw_tmr0_div, ETRAXTimerState), - VMSTATE_UINT32(r_tmr0_data, ETRAXTimerState), - VMSTATE_UINT32(rw_tmr0_ctrl, ETRAXTimerState), - - VMSTATE_UINT32(rw_tmr1_div, ETRAXTimerState), - VMSTATE_UINT32(r_tmr1_data, ETRAXTimerState), - VMSTATE_UINT32(rw_tmr1_ctrl, ETRAXTimerState), - - VMSTATE_UINT32(rw_wd_ctrl, ETRAXTimerState), - - VMSTATE_UINT32(rw_intr_mask, ETRAXTimerState), - VMSTATE_UINT32(rw_ack_intr, ETRAXTimerState), - VMSTATE_UINT32(r_intr, ETRAXTimerState), - VMSTATE_UINT32(r_masked_intr, ETRAXTimerState), - - VMSTATE_END_OF_LIST() - } -}; - -static uint64_t -timer_read(void *opaque, hwaddr addr, unsigned int size) -{ - ETRAXTimerState *t =3D opaque; - uint32_t r =3D 0; - - switch (addr) { - case R_TMR0_DATA: - r =3D ptimer_get_count(t->ptimer_t0); - break; - case R_TMR1_DATA: - r =3D ptimer_get_count(t->ptimer_t1); - break; - case R_TIME: - r =3D qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) / 10; - break; - case RW_INTR_MASK: - r =3D t->rw_intr_mask; - break; - case R_MASKED_INTR: - r =3D t->r_intr & t->rw_intr_mask; - break; - default: - D(printf ("%s %x\n", __func__, addr)); - break; - } - return r; -} - -static void update_ctrl(ETRAXTimerState *t, int tnum) -{ - unsigned int op; - unsigned int freq; - unsigned int freq_hz; - unsigned int div; - uint32_t ctrl; - - ptimer_state *timer; - - if (tnum =3D=3D 0) { - ctrl =3D t->rw_tmr0_ctrl; - div =3D t->rw_tmr0_div; - timer =3D t->ptimer_t0; - } else { - ctrl =3D t->rw_tmr1_ctrl; - div =3D t->rw_tmr1_div; - timer =3D t->ptimer_t1; - } - - - op =3D ctrl & 3; - freq =3D ctrl >> 2; - freq_hz =3D 32000000; - - switch (freq) - { - case 0: - case 1: - D(printf ("extern or disabled timer clock?\n")); - break; - case 4: freq_hz =3D 29493000; break; - case 5: freq_hz =3D 32000000; break; - case 6: freq_hz =3D 32768000; break; - case 7: freq_hz =3D 100000000; break; - default: - abort(); - break; - } - - D(printf ("freq_hz=3D%d div=3D%d\n", freq_hz, div)); - ptimer_transaction_begin(timer); - ptimer_set_freq(timer, freq_hz); - ptimer_set_limit(timer, div, 0); - - switch (op) - { - case 0: - /* Load. */ - ptimer_set_limit(timer, div, 1); - break; - case 1: - /* Hold. */ - ptimer_stop(timer); - break; - case 2: - /* Run. */ - ptimer_run(timer, 0); - break; - default: - abort(); - break; - } - ptimer_transaction_commit(timer); -} - -static void timer_update_irq(ETRAXTimerState *t) -{ - t->r_intr &=3D ~(t->rw_ack_intr); - t->r_masked_intr =3D t->r_intr & t->rw_intr_mask; - - D(printf("%s: masked_intr=3D%x\n", __func__, t->r_masked_intr)); - qemu_set_irq(t->irq, !!t->r_masked_intr); -} - -static void timer0_hit(void *opaque) -{ - ETRAXTimerState *t =3D opaque; - t->r_intr |=3D 1; - timer_update_irq(t); -} - -static void timer1_hit(void *opaque) -{ - ETRAXTimerState *t =3D opaque; - t->r_intr |=3D 2; - timer_update_irq(t); -} - -static void watchdog_hit(void *opaque) -{ - ETRAXTimerState *t =3D opaque; - if (t->wd_hits =3D=3D 0) { - /* real hw gives a single tick before resetting but we are - a bit friendlier to compensate for our slower execution. */ - ptimer_set_count(t->ptimer_wd, 10); - ptimer_run(t->ptimer_wd, 1); - qemu_irq_raise(t->nmi); - } - else - qemu_system_reset_request(SHUTDOWN_CAUSE_GUEST_RESET); - - t->wd_hits++; -} - -static inline void timer_watchdog_update(ETRAXTimerState *t, uint32_t valu= e) -{ - unsigned int wd_en =3D t->rw_wd_ctrl & (1 << 8); - unsigned int wd_key =3D t->rw_wd_ctrl >> 9; - unsigned int wd_cnt =3D t->rw_wd_ctrl & 511; - unsigned int new_key =3D value >> 9 & ((1 << 7) - 1); - unsigned int new_cmd =3D (value >> 8) & 1; - - /* If the watchdog is enabled, they written key must match the - complement of the previous. */ - wd_key =3D ~wd_key & ((1 << 7) - 1); - - if (wd_en && wd_key !=3D new_key) - return; - - D(printf("en=3D%d new_key=3D%x oldkey=3D%x cmd=3D%d cnt=3D%d\n",=20 - wd_en, new_key, wd_key, new_cmd, wd_cnt)); - - if (t->wd_hits) - qemu_irq_lower(t->nmi); - - t->wd_hits =3D 0; - - ptimer_transaction_begin(t->ptimer_wd); - ptimer_set_freq(t->ptimer_wd, 760); - if (wd_cnt =3D=3D 0) - wd_cnt =3D 256; - ptimer_set_count(t->ptimer_wd, wd_cnt); - if (new_cmd) - ptimer_run(t->ptimer_wd, 1); - else - ptimer_stop(t->ptimer_wd); - - t->rw_wd_ctrl =3D value; - ptimer_transaction_commit(t->ptimer_wd); -} - -static void -timer_write(void *opaque, hwaddr addr, - uint64_t val64, unsigned int size) -{ - ETRAXTimerState *t =3D opaque; - uint32_t value =3D val64; - - switch (addr) - { - case RW_TMR0_DIV: - t->rw_tmr0_div =3D value; - break; - case RW_TMR0_CTRL: - D(printf ("RW_TMR0_CTRL=3D%x\n", value)); - t->rw_tmr0_ctrl =3D value; - update_ctrl(t, 0); - break; - case RW_TMR1_DIV: - t->rw_tmr1_div =3D value; - break; - case RW_TMR1_CTRL: - D(printf ("RW_TMR1_CTRL=3D%x\n", value)); - t->rw_tmr1_ctrl =3D value; - update_ctrl(t, 1); - break; - case RW_INTR_MASK: - D(printf ("RW_INTR_MASK=3D%x\n", value)); - t->rw_intr_mask =3D value; - timer_update_irq(t); - break; - case RW_WD_CTRL: - timer_watchdog_update(t, value); - break; - case RW_ACK_INTR: - t->rw_ack_intr =3D value; - timer_update_irq(t); - t->rw_ack_intr =3D 0; - break; - default: - printf("%s " HWADDR_FMT_plx " %x\n", __func__, addr, value); - break; - } -} - -static const MemoryRegionOps timer_ops =3D { - .read =3D timer_read, - .write =3D timer_write, - .endianness =3D DEVICE_LITTLE_ENDIAN, - .valid =3D { - .min_access_size =3D 4, - .max_access_size =3D 4 - } -}; - -static void etraxfs_timer_reset_enter(Object *obj, ResetType type) -{ - ETRAXTimerState *t =3D ETRAX_TIMER(obj); - - ptimer_transaction_begin(t->ptimer_t0); - ptimer_stop(t->ptimer_t0); - ptimer_transaction_commit(t->ptimer_t0); - ptimer_transaction_begin(t->ptimer_t1); - ptimer_stop(t->ptimer_t1); - ptimer_transaction_commit(t->ptimer_t1); - ptimer_transaction_begin(t->ptimer_wd); - ptimer_stop(t->ptimer_wd); - ptimer_transaction_commit(t->ptimer_wd); - t->rw_wd_ctrl =3D 0; - t->r_intr =3D 0; - t->rw_intr_mask =3D 0; -} - -static void etraxfs_timer_reset_hold(Object *obj, ResetType type) -{ - ETRAXTimerState *t =3D ETRAX_TIMER(obj); - - qemu_irq_lower(t->irq); -} - -static void etraxfs_timer_realize(DeviceState *dev, Error **errp) -{ - ETRAXTimerState *t =3D ETRAX_TIMER(dev); - SysBusDevice *sbd =3D SYS_BUS_DEVICE(dev); - - t->ptimer_t0 =3D ptimer_init(timer0_hit, t, PTIMER_POLICY_LEGACY); - t->ptimer_t1 =3D ptimer_init(timer1_hit, t, PTIMER_POLICY_LEGACY); - t->ptimer_wd =3D ptimer_init(watchdog_hit, t, PTIMER_POLICY_LEGACY); - - sysbus_init_irq(sbd, &t->irq); - sysbus_init_irq(sbd, &t->nmi); - - memory_region_init_io(&t->mmio, OBJECT(t), &timer_ops, t, - "etraxfs-timer", 0x5c); - sysbus_init_mmio(sbd, &t->mmio); -} - -static void etraxfs_timer_class_init(ObjectClass *klass, void *data) -{ - DeviceClass *dc =3D DEVICE_CLASS(klass); - ResettableClass *rc =3D RESETTABLE_CLASS(klass); - - dc->realize =3D etraxfs_timer_realize; - dc->vmsd =3D &vmstate_etraxfs; - rc->phases.enter =3D etraxfs_timer_reset_enter; - rc->phases.hold =3D etraxfs_timer_reset_hold; -} - -static const TypeInfo etraxfs_timer_info =3D { - .name =3D TYPE_ETRAX_FS_TIMER, - .parent =3D TYPE_SYS_BUS_DEVICE, - .instance_size =3D sizeof(ETRAXTimerState), - .class_init =3D etraxfs_timer_class_init, -}; - -static void etraxfs_timer_register_types(void) -{ - type_register_static(&etraxfs_timer_info); -} - -type_init(etraxfs_timer_register_types) diff --git a/hw/Kconfig b/hw/Kconfig index f7866e76f7..6fdaff1b1b 100644 --- a/hw/Kconfig +++ b/hw/Kconfig @@ -50,7 +50,6 @@ source arm/Kconfig source cpu/Kconfig source alpha/Kconfig source avr/Kconfig -source cris/Kconfig source hppa/Kconfig source i386/Kconfig source loongarch/Kconfig diff --git a/hw/cris/Kconfig b/hw/cris/Kconfig deleted file mode 100644 index 3f0680cf09..0000000000 --- a/hw/cris/Kconfig +++ /dev/null @@ -1,3 +0,0 @@ -config ETRAXFS - bool - select PTIMER diff --git a/hw/timer/meson.build b/hw/timer/meson.build index 80427852e0..5b6c8b4be9 100644 --- a/hw/timer/meson.build +++ b/hw/timer/meson.build @@ -10,7 +10,6 @@ system_ss.add(when: 'CONFIG_CMSDK_APB_TIMER', if_true: fi= les('cmsdk-apb-timer.c' system_ss.add(when: 'CONFIG_RENESAS_TMR', if_true: files('renesas_tmr.c')) system_ss.add(when: 'CONFIG_RENESAS_CMT', if_true: files('renesas_cmt.c')) system_ss.add(when: 'CONFIG_DIGIC', if_true: files('digic-timer.c')) -system_ss.add(when: 'CONFIG_ETRAXFS', if_true: files('etraxfs_timer.c')) system_ss.add(when: 'CONFIG_EXYNOS4', if_true: files('exynos4210_mct.c')) system_ss.add(when: 'CONFIG_EXYNOS4', if_true: files('exynos4210_pwm.c')) system_ss.add(when: 'CONFIG_GRLIB', if_true: files('grlib_gptimer.c')) diff --git a/scripts/coverity-scan/COMPONENTS.md b/scripts/coverity-scan/CO= MPONENTS.md index 5851df5b56..c12ae9e49c 100644 --- a/scripts/coverity-scan/COMPONENTS.md +++ b/scripts/coverity-scan/COMPONENTS.md @@ -10,7 +10,7 @@ avr ~ .*/qemu((/include)?/hw/avr/.*|/target/avr/.*) =20 cris - ~ .*/qemu(/hw/cris/.*|/target/cris/.*) + ~ .*/qemu/target/cris/.* =20 hexagon-gen (component should be ignored in analysis) ~ .*/qemu(/target/hexagon/.*generated.*) --=20 2.45.2