From nobody Tue Feb 10 12:14:03 2026 Delivered-To: importer@patchew.org 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; 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=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1579036412; cv=none; d=zohomail.com; s=zohoarc; b=k/iqRSO1MvNCFiiZkFp9SCpn9d2DfdDXtpp3SlpoxHX9CKK2dAaPaPi2j8s7oOtB18jsNqU2c5vhZpYdGK1TLoa17DFNUvXQUd3/mY/xUZbxwUsfsS7WYfRCEBOS/XKTt/d20z3OomDVyxYxj81LhmIhYxcs68NRpJEiWDJenWA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1579036412; h=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=4s1PqpDA2phXf0Lid2sF9zCU5S3KdedJJZ1I7QflK10=; b=UY7BoswhgcoOnJzVLBUzojh+ZK6KtlLtmsfip8AxvzL6ONTmC+k57jcVEQe3rm6RyzROq90U5Ksx04/WERzRXfL6i2pMf4Da5d8dZcchShcyy2dNzYUZDlQhO3EsAimYHqUYER5mqk9xzKDQS3S7VbfS+p0zT27+ehgcsy5uKyI= 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 1579036412011951.9763879834235; Tue, 14 Jan 2020 13:13:32 -0800 (PST) Received: from localhost ([::1]:46048 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1irTVC-00065T-Lw for importer@patchew.org; Tue, 14 Jan 2020 16:13:30 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40817) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1irTRK-00022g-Nm for qemu-devel@nongnu.org; Tue, 14 Jan 2020 16:09:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1irTRJ-0001Qe-R0 for qemu-devel@nongnu.org; Tue, 14 Jan 2020 16:09:30 -0500 Received: from mail-pf1-x442.google.com ([2607:f8b0:4864:20::442]:36917) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1irTRJ-0001PM-LR for qemu-devel@nongnu.org; Tue, 14 Jan 2020 16:09:29 -0500 Received: by mail-pf1-x442.google.com with SMTP id p14so7180613pfn.4 for ; Tue, 14 Jan 2020 13:09:29 -0800 (PST) Received: from cloudburst.ASUS (rrcs-66-91-136-155.west.biz.rr.com. [66.91.136.155]) by smtp.gmail.com with ESMTPSA id d26sm17881020pgv.66.2020.01.14.13.09.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jan 2020 13:09:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=4s1PqpDA2phXf0Lid2sF9zCU5S3KdedJJZ1I7QflK10=; b=OKEvSgwyeHh3f0wJjlOVQQtX+sacNY++tkDoDrglulLWsMrjJAlgkMcwSpchzowu+/ lMgcgQpqXhCXN3eE1pCH3yytK/ZTGAICUiXDTB5+uSryCpKcZwXh+ayHuQGkBYpLgsMh mkFkAh+Nia0vFqBQ7fVb0xtAo9ysZBBcdx9xAZm0ZtWrj8413lj5JNbvyUdxiuIzV3sL UwuSWO9p1CyayR+U6q+VSSjpYD3dD6AQPaCnf8gk8scOZSBDCdixAsH2bOYf4LKy/y4i 2egnwstlxDKmw+gQn4SbLEmuxKLcL/KeQUKtCLOpaZY0JA1pPkMHpn3C7AACjQ75NrpO qAjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=4s1PqpDA2phXf0Lid2sF9zCU5S3KdedJJZ1I7QflK10=; b=M1JeVuyO9CfivnfGUgzTznaRlUBsgi9SPv0ytiTON3a14E2f7B07GUgPBtMWkUzkhZ iQ2clYiD6zsqDA9lLrQOtwr8Yd53fwQf+R0L3SPrFLzZODv97AX3gAb9h8G/kuGOiX8G b1Fg9qmB0KssZKRoQmaqlQn+6zAkQAfNLpcbLo1p0CBI5nCVxb0BZd3hF/4iD/KRLDlP iamnWp77rYz/N7Xsj6n2oR2EZpVXfnOXLxBcLzWj7iHnOV0uzTmlUqqQRgmz5i+NuYhY /vH4Jfv+PX/Z6080CIqqJxwKk2ApkOR8pX1GdQBkzOhvDQZeaEiciWSMmJ6wi8bFqNZe h/Aw== X-Gm-Message-State: APjAAAXd4mAjitN5mvyptraGnvNiPKkQiskm83cyJZa5Asnc/qX+x5DD /j3iubqnrut4InSt6rhZWQ5AFiyobdg= X-Google-Smtp-Source: APXvYqyXPA1WupNkOBPSoMvUE3OVlL85WYspCcGAmLg+N6VsrO9SrjBK3bXbRmzZGXNDICAw2/OpIg== X-Received: by 2002:a65:644b:: with SMTP id s11mr29280672pgv.332.1579036168326; Tue, 14 Jan 2020 13:09:28 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 1/3] target/i386: Renumber EXCP_SYSCALL Date: Tue, 14 Jan 2020 11:09:19 -1000 Message-Id: <20200114210921.11216-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200114210921.11216-1-richard.henderson@linaro.org> References: <20200114210921.11216-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::442 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: pbonzini@redhat.com, riku.voipio@iki.fi, laurent@vivier.eu, peter.maydell@linaro.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" We are not short of numbers for EXCP_*. There is no need to confuse things by having EXCP_VMEXIT and EXCP_SYSCALL overlap, even though the former is only used for system mode and the latter is only used for user mode. Signed-off-by: Richard Henderson Reviewed-by: Alex Benn=C3=A9e Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- target/i386/cpu.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/target/i386/cpu.h b/target/i386/cpu.h index 594326a794..164d038d1f 100644 --- a/target/i386/cpu.h +++ b/target/i386/cpu.h @@ -998,9 +998,8 @@ typedef uint64_t FeatureWordArray[FEATURE_WORDS]; #define EXCP11_ALGN 17 #define EXCP12_MCHK 18 =20 -#define EXCP_SYSCALL 0x100 /* only happens in user only emulation - for syscall instruction */ -#define EXCP_VMEXIT 0x100 +#define EXCP_VMEXIT 0x100 /* only for system emulation */ +#define EXCP_SYSCALL 0x101 /* only for user emulation */ =20 /* i386-specific interrupt pending bits. */ #define CPU_INTERRUPT_POLL CPU_INTERRUPT_TGT_EXT_1 --=20 2.20.1