From patchwork Tue Oct 3 17:30:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 728747 Delivered-To: patch@linaro.org Received: by 2002:a5d:60c8:0:b0:31d:da82:a3b4 with SMTP id x8csp2260288wrt; Tue, 3 Oct 2023 10:32:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG+IzVX7P09rchFjBf0wzx/w9CAEpKN//PkdOZJWcp8P0lkeRbj6n4mm78hJZWo6pn0XBEK X-Received: by 2002:a05:6358:71c:b0:150:8ba9:4d with SMTP id e28-20020a056358071c00b001508ba9004dmr121908rwj.3.1696354358730; Tue, 03 Oct 2023 10:32:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696354358; cv=none; d=google.com; s=arc-20160816; b=ySWz/9BWLOVGf9f89z+rHIuCtvl4EtV40ZPuGxc0ICsjiGcJTsVovNsyI+YruhUIxs 8cS4iz0/61N332hTPxoN6h2SEGVAemGZAhHNebz97lP5NSCsoockhBQHGQwYxsoR2zm1 wQ7Ij35MuAs5t3phqyNJhdlJOg/lj6naY0O+S2FSGgZz1IXjmwaAOGCXT20P1vXQWS7v Gc3WQ2zPabkw+m1Hkh8vmefmTYxSc5wfJCOkAPG4tPdzszOVF0RtmdCTczAuT0UsaXMI r5AzK5hxwJVcjWO+rElRKgXqUU3c1eZDkAhYIZLtYW05S/SzKCfwQwCg0etOHGb7xnDL qw4w== 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=YGnA2+8FT9jUoy0rKnwNzcAoA8JDcvTIIwq4HoZ/A1w=; fh=HGG5jZNhe8Q+zQJ9+mddel2c/xsqW3vEoqbd78QYiOw=; b=eDThQ4UqlpzR8tSrIuI1F2uO2kmGusSKW0i4uQiffVoPpw2g0jfcEykezryUTgP3Ha h+dspfVVZng/wJS99eHn0hWB/heMSFwl1ii+SPx2ePbUwUedMNeU5kkdYqg/1PCgxyFV PfrcZxIyFBql94JTN0sAQMtKOCR9Keiw9MUzXDSZxkzK5ZxvsOM7ohLnyol/+4seK2NE HBey0n5pt9ZoNMNQ45XXG1cHY4TcelHk0szItSsrvogu92EsHTnOGjtM5s+FsGXNSIWd zDWIGUdflnKXwCgWkEXqDCfZUIIUzIPCpgqmjRTGpZFSe9bcQjbDQB7aCRle1YHHJrWE E/2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="f+PSZy/P"; 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 n1-20020a0ce541000000b006238ad6d2d2si696138qvm.577.2023.10.03.10.32.38 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 03 Oct 2023 10:32:38 -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="f+PSZy/P"; 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 1qnjFF-00008o-4D; Tue, 03 Oct 2023 13:31:41 -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 1qnjF6-0008Td-7V for qemu-devel@nongnu.org; Tue, 03 Oct 2023 13:31:32 -0400 Received: from mail-pg1-x532.google.com ([2607:f8b0:4864:20::532]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qnjF4-0007X2-Fy for qemu-devel@nongnu.org; Tue, 03 Oct 2023 13:31:31 -0400 Received: by mail-pg1-x532.google.com with SMTP id 41be03b00d2f7-578d0dcd4e1so778944a12.2 for ; Tue, 03 Oct 2023 10:31:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1696354288; x=1696959088; 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=YGnA2+8FT9jUoy0rKnwNzcAoA8JDcvTIIwq4HoZ/A1w=; b=f+PSZy/P0tHAzqru2VNrltFtFUZTLZB7nW32D7rGfaa45Em1wdYAa3X4PVYwMCXU1m W6jEZPCo2HBW72w4sPy6SVGP6QyCuICnb/VS6v0PXyjy6VxMWW+vtsfZoitO8Kmdj5/z tTX12sEb7ngaFKi4eVZ1tkANBGg6vFdrEWNLYu/lKS8ICQvDf8wu5PIwDNfmKGAKNhDl 7bGrPd5tenUtwLdGoDyRET/xBNFfYXA/A0ohDOSB2P7pu0p3/mc4PA4pLsO9AVVILoiY Abi0v89TptCbI/M6owkWxyM0mKQKfU+z7gXGKth0KAp0qlGSQ4KJ4gy577wOVJYvufBs Fuew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696354288; x=1696959088; 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=YGnA2+8FT9jUoy0rKnwNzcAoA8JDcvTIIwq4HoZ/A1w=; b=glUZWZOtatRhRhoh/IQYgNb80QK319lVST3zeZgTlNfqoCn14N4eRALMjg7DyWvKEQ 7y8exstkC1GpnRwrR++A7ceW/s1YGS5hp8BDFoQOKemvYv/eVvJLqdNxIg2nu1gBRLak QDpFkLhJrwpNp8NGUt6cV5BbNtxuY8NHs/TAdRPFOTRi/QYGIfAJytZy8YD2rgG2uVOM 0uUT/MB4JrGG/vStHCnjDmKsNWIDXCaSFQZeT1M7gv6GW24YqOZHDCqcN/GoJ1ST+7Ku RAHGjB1r/35oNSyE+qxBu0tpLfg9UWcHi/2ReuedF8kuH/eyLrxp5Vip7zdNbQrm7L5e IQPQ== X-Gm-Message-State: AOJu0Yxpi8KAuvwVld1eL/bFAf4du4eF0yDoEueIrJIxCM6KNPTyXkff KUicaM/f2R/Ue8cg1Y/cFZEuuSIwkSzjB76l5+Y= X-Received: by 2002:a05:6a20:4305:b0:15e:2d9f:cae0 with SMTP id h5-20020a056a20430500b0015e2d9fcae0mr135812pzk.10.1696354288146; Tue, 03 Oct 2023 10:31:28 -0700 (PDT) Received: from stoup.. ([71.212.149.95]) by smtp.gmail.com with ESMTPSA id n7-20020aa78a47000000b00692c5b1a731sm1620195pfa.186.2023.10.03.10.31.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 10:31:27 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Anton Johansson Subject: [PULL 31/47] exec: Make EXCP_FOO definitions target agnostic Date: Tue, 3 Oct 2023 10:30:36 -0700 Message-Id: <20231003173052.1601813-32-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231003173052.1601813-1-richard.henderson@linaro.org> References: <20231003173052.1601813-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::532; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x532.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 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 From: Philippe Mathieu-Daudé The EXCP_* definitions don't need to be target specific, move them to "exec/cpu-common.h". Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Anton Johansson Message-Id: <20230914185718.76241-2-philmd@linaro.org> Signed-off-by: Richard Henderson --- include/exec/cpu-all.h | 7 ------- include/exec/cpu-common.h | 7 +++++++ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/exec/cpu-all.h b/include/exec/cpu-all.h index 17c7420543..b14255923b 100644 --- a/include/exec/cpu-all.h +++ b/include/exec/cpu-all.h @@ -26,13 +26,6 @@ #include "hw/core/cpu.h" #include "qemu/rcu.h" -#define EXCP_INTERRUPT 0x10000 /* async interruption */ -#define EXCP_HLT 0x10001 /* hlt instruction reached */ -#define EXCP_DEBUG 0x10002 /* cpu stopped after a breakpoint or singlestep */ -#define EXCP_HALTED 0x10003 /* cpu is halted (waiting for external event) */ -#define EXCP_YIELD 0x10004 /* cpu wants to yield timeslice to another */ -#define EXCP_ATOMIC 0x10005 /* stop-the-world and emulate atomic */ - /* some important defines: * * HOST_BIG_ENDIAN : whether the host cpu is big endian and diff --git a/include/exec/cpu-common.h b/include/exec/cpu-common.h index 41788c0bdd..360b8298a4 100644 --- a/include/exec/cpu-common.h +++ b/include/exec/cpu-common.h @@ -7,6 +7,13 @@ #include "exec/hwaddr.h" #endif +#define EXCP_INTERRUPT 0x10000 /* async interruption */ +#define EXCP_HLT 0x10001 /* hlt instruction reached */ +#define EXCP_DEBUG 0x10002 /* cpu stopped after a breakpoint or singlestep */ +#define EXCP_HALTED 0x10003 /* cpu is halted (waiting for external event) */ +#define EXCP_YIELD 0x10004 /* cpu wants to yield timeslice to another */ +#define EXCP_ATOMIC 0x10005 /* stop-the-world and emulate atomic */ + /** * vaddr: * Type wide enough to contain any #target_ulong virtual address.