From patchwork Tue Mar 19 06:28:53 2024 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: 781071 Delivered-To: patch@linaro.org Received: by 2002:a5d:46c1:0:b0:33e:7753:30bd with SMTP id g1csp1777973wrs; Mon, 18 Mar 2024 23:30:53 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCU27/DInvTROhb9Zxp8DeY8cWNw6ZffamfdJVEI8e7/YXNSQ7dejZmSJJl/E21eDJMeMmn4KKrxYp4Cx8Ao6HOd X-Google-Smtp-Source: AGHT+IGyJGdFUyd/LQB0RH39QH1Y/PgNGQWhWVyimVJoziuisA7BeHyin6muQR2df9VFNWLGJ9HX X-Received: by 2002:a1f:7dc9:0:b0:4ca:80c5:753d with SMTP id y192-20020a1f7dc9000000b004ca80c5753dmr10733129vkc.4.1710829853491; Mon, 18 Mar 2024 23:30:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1710829853; cv=none; d=google.com; s=arc-20160816; b=TnqAz6/JpLgF/u6eCv2Pa2q/NajPq3taqXIlpZgVUVuQ5pWITWn9pWrdROXIe4JP3W nzdkIFO/lK4NZUWtE5fuwyLsCpw50CEQjitHsk+ssmT5uMBVrG43Z+VnVVEcelSpp/++ 8mNbo+pT+FBnW0pnnfXZWRDm0SevS6TrI/Fij+ie8DDbT7WtPfb4v0X0v45+KcPewjeO VF1vX9fNvakungxggNO/06lvJAt/WlDwk2edFpTHJxVOly3yB7lcUzXgNf51HqKrmhGW ZN46ODvhckmiqe15qEDYAlmGGBMj6pmCxcQQ4OikkeDyMubMLiHKFbHcWK9AotaHp9PC Cmkw== 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:cc:to :from:dkim-signature; bh=jaSTDZWCvnDQFHGWaMWeelLWgiRSqaaIXlBIS7H4n9A=; fh=gePD3z8dMUYjJ8/ZZTN9tznSOiGIRTnAzPrBTUj0xb0=; b=sJ19EjPvpXrRz34jVTaEfk3CrL90Nco4p46l9l43OKfcVgxCa4EhNZEJxrpgiERtyJ ki2vfnrO7yUx3fSFNAOQ8vwWc4WlVyefDKx6uJliVvKtKHXwTOerAD7jIlLTEAte849c Ya4GISI/kK9WdW2g0NS6Lv8g/lOK7TmtZBMj1B/7Lo9gtTw1/lf04z+ChtbFwv8q6cZe t4ta7eFIJ+MWp6mf4T62rxnxS1hQ89RscKGoSAMWbAMOj06OE/PlPcpDeTmJsHoY51pW RjCzEQpoYUTtKeABU9GgVwxQXEib5Tqi6J3avEl1Fo2oqvC8oNQiyTp6NC9L9UnYpFGh RRdA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=heLJNLTV; 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 gu14-20020a056214260e00b006915cc16349si10193494qvb.100.2024.03.18.23.30.53 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 Mar 2024 23:30:53 -0700 (PDT) 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=heLJNLTV; 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 1rmSyk-0005Yh-IK; Tue, 19 Mar 2024 02:29:42 -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 1rmSye-0005Lb-Bo for qemu-devel@nongnu.org; Tue, 19 Mar 2024 02:29:37 -0400 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rmSyb-0005ea-Lx for qemu-devel@nongnu.org; Tue, 19 Mar 2024 02:29:36 -0400 Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-41461c256c4so5250185e9.0 for ; Mon, 18 Mar 2024 23:29:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710829772; x=1711434572; 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=jaSTDZWCvnDQFHGWaMWeelLWgiRSqaaIXlBIS7H4n9A=; b=heLJNLTVIkvO4B3F7/mDF8jdEk0hazqFz3rTaMhKKxf4SlX4XCC/i/JoSaDCKwOJyA LDQzE0LJJExZeFNVxHNxXmqvBowtQA+L3h5dTKC0y3Nsc3DysqIOQa9CmVAXNywhXSMo yPhUGoSp7HPtB3HGYS8cpDUx0gYIoc3AcvJZmGYa77zP5FSr1WQR7r4O6JnTVin87CQM COuq51VESAm8PaA8VPKltrbprNDGJy4O60xtvW0yf1ZPGhjjI1apYT2frYjygdVIEWCy uo68xaIRryvBL6WxCWDA3aqPlSALSrZ/lxUMNuX/wN4fK1ScnAZ4z5F1APiZYdj2tHzM Ii0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710829772; x=1711434572; 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=jaSTDZWCvnDQFHGWaMWeelLWgiRSqaaIXlBIS7H4n9A=; b=TCpa8E9YhVk2fIlZ8FpNJ087GtciaJQMmqHFHGGxb2I7XgEJ3Jr1yM8wztbCmh6eIG FboPQT1m1pFuiVZ2H7miIlu9loCpu+uU41/ayf4en6+oD8sqTCMDh4r8zFOME90l+LJQ LXzhuZgdIt+JFh1juHmxdFa4YJi/hgcg+loqb1uaRnPOCF1BZfLsVxK8acZ0XpUaqoS1 q7SGN4gotxY5oo4OcBR3iUwmnu6vpEmsdN9Jns0hjkCRKv3D3ZFpuWN6sd2OU3DKemS8 zCls2sbBvEI5lHQ0xIKU7dt0e5OuJGR76/P3GQScz5zgpRPKefusWwWqXPrYk5nnXiyW qrhQ== X-Gm-Message-State: AOJu0YxJD2R3gsIXmu4IWMxjQ5Ny71EuQAZc/pyR7+7DATMvuY1zWQ8p 0RyCzNhvYA8jVoWQw+F5B+9RwgTcv2O9gmqIHoAZgIrj+TM2DfauAYcOGGEp333392dQlfBQ6mj 7 X-Received: by 2002:adf:e392:0:b0:33d:746b:f360 with SMTP id e18-20020adfe392000000b0033d746bf360mr939268wrm.51.1710829771832; Mon, 18 Mar 2024 23:29:31 -0700 (PDT) Received: from m1x-phil.lan ([176.176.166.129]) by smtp.gmail.com with ESMTPSA id bw28-20020a0560001f9c00b003418364032asm1933168wrb.112.2024.03.18.23.29.30 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 18 Mar 2024 23:29:31 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Richard Henderson , "Edgar E. Iglesias" , Laurent Vivier , Anton Johansson , Alistair Francis , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= Subject: [PATCH-for-9.1 6/8] target/microblaze: Rename helper.c -> sys_helper.c Date: Tue, 19 Mar 2024 07:28:53 +0100 Message-ID: <20240319062855.8025-7-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240319062855.8025-1-philmd@linaro.org> References: <20240319062855.8025-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::336; envelope-from=philmd@linaro.org; helo=mail-wm1-x336.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 helper.c only contains system emulation helpers, rename it as sys_helper.c. Adapt meson and remove pointless #ifdef'ry. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Anton Johansson Reviewed-by: Edgar E. Iglesias --- target/microblaze/{helper.c => sys_helper.c} | 5 +---- target/microblaze/meson.build | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) rename target/microblaze/{helper.c => sys_helper.c} (99%) diff --git a/target/microblaze/helper.c b/target/microblaze/sys_helper.c similarity index 99% rename from target/microblaze/helper.c rename to target/microblaze/sys_helper.c index 3f410fc7b5..5180500354 100644 --- a/target/microblaze/helper.c +++ b/target/microblaze/sys_helper.c @@ -1,5 +1,5 @@ /* - * MicroBlaze helper routines. + * MicroBlaze system helper routines. * * Copyright (c) 2009 Edgar E. Iglesias * Copyright (c) 2009-2012 PetaLogix Qld Pty Ltd. @@ -24,7 +24,6 @@ #include "qemu/host-utils.h" #include "exec/log.h" -#ifndef CONFIG_USER_ONLY static bool mb_cpu_access_is_secure(MicroBlazeCPU *cpu, MMUAccessType access_type) { @@ -266,8 +265,6 @@ bool mb_cpu_exec_interrupt(CPUState *cs, int interrupt_request) return false; } -#endif /* !CONFIG_USER_ONLY */ - void mb_cpu_do_unaligned_access(CPUState *cs, vaddr addr, MMUAccessType access_type, int mmu_idx, uintptr_t retaddr) diff --git a/target/microblaze/meson.build b/target/microblaze/meson.build index 3ed4fbb67a..013ea542be 100644 --- a/target/microblaze/meson.build +++ b/target/microblaze/meson.build @@ -5,7 +5,6 @@ microblaze_ss.add(gen) microblaze_ss.add(files( 'cpu.c', 'gdbstub.c', - 'helper.c', 'op_helper.c', 'translate.c', )) @@ -14,6 +13,7 @@ microblaze_system_ss = ss.source_set() microblaze_system_ss.add(files( 'mmu.c', 'machine.c', + 'sys_helper.c', )) target_arch += {'microblaze': microblaze_ss}