From patchwork Thu Dec 21 03:15:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 756919 Delivered-To: patch@linaro.org Received: by 2002:a5d:67c6:0:b0:336:6142:bf13 with SMTP id n6csp686402wrw; Wed, 20 Dec 2023 19:20:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IEAEuKGsbpwNu+Z6nqWrW+mn8iemDw109Jzz0ct95IUA5OjFc3I/dDoBzzPsydx/3mJu3Fe X-Received: by 2002:ad4:5aa5:0:b0:67f:4a8d:1618 with SMTP id u5-20020ad45aa5000000b0067f4a8d1618mr7297048qvg.119.1703128808510; Wed, 20 Dec 2023 19:20:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703128808; cv=none; d=google.com; s=arc-20160816; b=PY5VHv4vsBwPi1zkkZMDG1HBZ9T3smik0/FFvOnMriUI6cp75sgT93jU7DZAI6P01X mMYexgjYFmNOLMFeH2gKD5/hiB+CyttKlRSEcaDhRILERbJ+MejdkipPxn48eMv8Xwtj 1GXtdbiSKDhCMBHHHQOgSke4GzeW5/dzbKZXhLoOBJ4WFA21GjY7yNkgrYdDWLNjm+6O FLWG00LTGoB9sf33y3SBRQbvV9LmgEGlWLNI7XGnHyAKbynFwfMye5FzShO3ZecoMmzd srQYqxtUHD+oBjT0nLVeL6b9MT9GkeckV+rnBqTwmhesTMtARxd+Y3TnCOV9eKcMxwpC pFWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=FD5wy/U9+bZCbaz0itBRFKutSZtCYzbYclfjlyxHVl0=; fh=PnYt+qEB9tAfMKoqBm2xjKOFpYyFFGPudh5cVIoieJM=; b=FZPFzyZWlGjAXzaD1EIryvscMzRgCW3TQEuEijZwwySROOAZP7f77CjjEd1y/A6kFb nROvwAsYlBvApFj3pePU2BhLc/ps/ybsQBUISemxjG/B8JRa0JyeW6wTaMLj29lybNfh kWoJMnojLoTNDniiRE3rW56ngjyCHKd3GWR/e3Lk+JMDJKpqvaQxEy8N3Q+ESlgWF7Er GbVuzwMW+8Pq1qJC6pSK1W4c09dm7tjfZuQjG0IOZZXaBbGpo/ZnyDz93eqqe5+xzTtn Csuyy/2ePguW3oGYYsfgEY6qdnQLiLIMd281v8LzrlnXIhUvfjn7nJwm/dQcmt8+ktOX almA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gi2lSAav; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id r3-20020a0cc403000000b0067f38d1c2a6si1177881qvi.391.2023.12.20.19.20.08 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 20 Dec 2023 19:20:08 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gi2lSAav; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rG9ZV-0007Yw-Pt; Wed, 20 Dec 2023 22:18:05 -0500 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 1rG9ZT-0007Yb-VS for qemu-devel@nongnu.org; Wed, 20 Dec 2023 22:18:03 -0500 Received: from mail-qt1-x831.google.com ([2607:f8b0:4864:20::831]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rG9ZS-0003oA-KW for qemu-devel@nongnu.org; Wed, 20 Dec 2023 22:18:03 -0500 Received: by mail-qt1-x831.google.com with SMTP id d75a77b69052e-42782692142so2380311cf.3 for ; Wed, 20 Dec 2023 19:18:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703128681; x=1703733481; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=FD5wy/U9+bZCbaz0itBRFKutSZtCYzbYclfjlyxHVl0=; b=gi2lSAav05VqO4QvkLpmXaWDwXWg1+ONdTL1fYBV09jc6Sygh7ah3V3P676Abj/LuE DzV+97+TvGjd2q4VB32IpQlGfgZaONUvtOGWq/1jarJS1hPgbLhRgRX6aa1h3cxqtpM9 vXfHS6r1+zKEhl1qiPwH/a7YklPwh+6TDNC89nyrl6vhgdQkkczM4Od4UnUFJpijzWkk Qi7AfSUN6NUp6K75HBFf6ysC75yBF2/98F3kTQfNV+8numamR5d2aYzfVU6jyNukHTwF GASJdxSkh2C3CqQdfipMHtq2Myr4yTut9v3qLkXmQdM5bOG+IJArroZ04fQe8K2ZsUEg pxwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703128681; x=1703733481; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FD5wy/U9+bZCbaz0itBRFKutSZtCYzbYclfjlyxHVl0=; b=n4SGohmBHd7oYbchKhxRwzD4OiJoNVc+KAfBuvWf6DvLLgpDYg9/LJ6GMDokD5tYJ6 xJ0QEY9kKTOiu20/Cm1TIY06wVJEA9xVTzlvRN+ZYaEHCCE9jvn1lgPLs8BnINkHdQWt j6oSJMO3izv+d1qB1FdGaRSeXbwEV1wfJQAGndxWy+6K7Knhfw04kQ147nPVh/RJZ1nv jikQ1N/0PLEj/ZwrJhIuHj32ajczpsYYyv6zEFxQYi4SqaKKliPGzalAK2EauOGUUENF fnzK/NxQuIXHQSA13HyBs3mQ9tQeKPYNzHSxYDF4MqFYGlkKs/U+F+2+pDV1EF1hAidS Sq8Q== X-Gm-Message-State: AOJu0YyxZKvVoZNg669M9H+jFYpbBVCZ6lOd1OMD7mqmtNomeo/wzifR Sfx1/+CHK2ce2mORLzC8Ol39ShPJO1WOgZGDon3wJUWD X-Received: by 2002:ac8:7d4e:0:b0:427:8319:16fa with SMTP id h14-20020ac87d4e000000b00427831916famr3370453qtb.15.1703128681067; Wed, 20 Dec 2023 19:18:01 -0800 (PST) Received: from stoup.. ([172.58.139.164]) by smtp.gmail.com with ESMTPSA id n8-20020a05620a294800b0078116d55191sm360808qkp.130.2023.12.20.19.17.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 19:18:00 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v2 13/71] target/openrisc: Constify VMState in machine.c Date: Thu, 21 Dec 2023 14:15:54 +1100 Message-Id: <20231221031652.119827-14-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231221031652.119827-1-richard.henderson@linaro.org> References: <20231221031652.119827-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::831; envelope-from=richard.henderson@linaro.org; helo=mail-qt1-x831.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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Signed-off-by: Richard Henderson --- target/openrisc/machine.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/target/openrisc/machine.c b/target/openrisc/machine.c index b7d7388640..3574e571cb 100644 --- a/target/openrisc/machine.c +++ b/target/openrisc/machine.c @@ -25,7 +25,7 @@ static const VMStateDescription vmstate_tlb_entry = { .name = "tlb_entry", .version_id = 1, .minimum_version_id = 1, - .fields = (VMStateField[]) { + .fields = (const VMStateField[]) { VMSTATE_UINTTL(mr, OpenRISCTLBEntry), VMSTATE_UINTTL(tr, OpenRISCTLBEntry), VMSTATE_END_OF_LIST() @@ -36,7 +36,7 @@ static const VMStateDescription vmstate_cpu_tlb = { .name = "cpu_tlb", .version_id = 2, .minimum_version_id = 2, - .fields = (VMStateField[]) { + .fields = (const VMStateField[]) { VMSTATE_STRUCT_ARRAY(itlb, CPUOpenRISCTLBContext, TLB_SIZE, 0, vmstate_tlb_entry, OpenRISCTLBEntry), VMSTATE_STRUCT_ARRAY(dtlb, CPUOpenRISCTLBContext, TLB_SIZE, 0, @@ -71,7 +71,7 @@ static const VMStateDescription vmstate_env = { .name = "env", .version_id = 6, .minimum_version_id = 6, - .fields = (VMStateField[]) { + .fields = (const VMStateField[]) { VMSTATE_UINTTL_2DARRAY(shadow_gpr, CPUOpenRISCState, 16, 32), VMSTATE_UINTTL(pc, CPUOpenRISCState), VMSTATE_UINTTL(ppc, CPUOpenRISCState), @@ -135,7 +135,7 @@ const VMStateDescription vmstate_openrisc_cpu = { .version_id = 1, .minimum_version_id = 1, .post_load = cpu_post_load, - .fields = (VMStateField[]) { + .fields = (const VMStateField[]) { VMSTATE_CPU(), VMSTATE_STRUCT(env, OpenRISCCPU, 1, vmstate_env, CPUOpenRISCState), VMSTATE_END_OF_LIST()