From nobody Fri Jun 24 13:59:48 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id CDD98870438; Fri, 24 Jun 2022 13:59:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LTzJh51lhz4gC7; Fri, 24 Jun 2022 13:59:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656079188; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=t5NVua7PGXzWfyqmEH5TDsRZ2vLK18bFOFvt4k6cuS8=; b=oaIbTupcruMgTu8cyceiQ2sbP3RRgeHwdeWiNw9RrtqQMv4qVX14Pv7Gii4W100HPD6OST PTPloFbEZXJHm7dLU4mcWtoDlf0o1rz4XOLzvinecn1TEFwKs51jriMUXTVlFpE1LW2xGN 0BmSZ6BVGM2POplnhFXhckuC7h+2GYAPFLKtoymG6ZgnjKckjgpGUvToKsCUwhJIViRHhn XDrgbsuV6MlFLgAHkUJMyHriaJ6wgpuruxYxKjIfbN+y5nB35ncf/qVsAvXKXtkp7NkPZl 7q9CQgSCIf9HdTOOA+3XfDvD7ma7of/6fxOXy9tLwiuEKWJ+aIPZN7UVMtpIyw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 88474110FC; Fri, 24 Jun 2022 13:59:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 25ODxm9j020607; Fri, 24 Jun 2022 13:59:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 25ODxmUg020606; Fri, 24 Jun 2022 13:59:48 GMT (envelope-from git) Date: Fri, 24 Jun 2022 13:59:48 GMT Message-Id: <202206241359.25ODxmUg020606@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Andrew Turner Subject: git: ffa5bf8b600a - main - Trap SVE instructions until we have SVE support List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: andrew X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ffa5bf8b600a77838be8fbf383382a2e7bafedc6 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656079188; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=t5NVua7PGXzWfyqmEH5TDsRZ2vLK18bFOFvt4k6cuS8=; b=N8LZBDwe5Ng9UuOK6D0iu8scYBvP2OvaaCfCvdR/ypJOeFLttcSi7YbiyyNpwbdxnaLTNZ AKV7JDHZFikRAw2Wwn1Uezd/J8tCk9TurblAoqcSKhpOipzwBZbFMPc4+4KP/d1XenxYIC sovlg0VovSWDoN+ndMr5BhrSclFP7ECEqk/yQR40W3aUVL6mEcFHKeHlWwKAa7k96re8Mn FG8/sLS6X3/Bsn+ilcQJgtYCGEiogkKuBuWMFstTEO+w+e4R0TfQWDCWKh+RM62+dJH4NY dx2fE8LMJuP6XWaSMj/s56x3RukCRqo7XaesqA1yECd+7eoBwCBjickfisG4cw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1656079188; a=rsa-sha256; cv=none; b=pNaDVHsSeqXP1dcrlfzneBffG1tU5nfHdUZZKOMQ8cEe3lK4dfqsGQks0s20S4p0jzbvAe XMNuie1ALo6y4OBg7wtF9GLhnIMJKnJkSCfR0RUrn6UClc+x01/RaSajtm5uw/0bkk1Yct b27ELfmkM6gOxkCMAxbOF3egMBeX/LhEAUxGbEC5PKiWWzL0A0NkHOWJAfA3vldcdbswfT +prWDWNySIfRyqkOacwpMtEai2EnuonD+rRTfR+96VceK8nLmV2Z4K9BW9BwQdEvwClBSE Sh6/cJXod97lw368Vunx4xJlkJcUb1zGVSHRXXV6wj8umgXCDKXRl2zIvuo2kQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=ffa5bf8b600a77838be8fbf383382a2e7bafedc6 commit ffa5bf8b600a77838be8fbf383382a2e7bafedc6 Author: Andrew Turner AuthorDate: 2022-06-24 11:50:28 +0000 Commit: Andrew Turner CommitDate: 2022-06-24 13:51:18 +0000 Trap SVE instructions until we have SVE support When running on hardware that supports SVE send the correct signal when an SVE instruction is run. Sponsored by: The FreeBSD Foundation --- sys/arm64/arm64/trap.c | 5 +++++ sys/arm64/include/armreg.h | 1 + 2 files changed, 6 insertions(+) diff --git a/sys/arm64/arm64/trap.c b/sys/arm64/arm64/trap.c index 5bf6c3d1a81d..21843694f48c 100644 --- a/sys/arm64/arm64/trap.c +++ b/sys/arm64/arm64/trap.c @@ -593,6 +593,11 @@ do_el0_sync(struct thread *td, struct trapframe *frame) panic("VFP exception in userland"); #endif break; + case EXCP_SVE: + call_trapsignal(td, SIGILL, ILL_ILLTRP, (void *)frame->tf_elr, + exception); + userret(td, frame); + break; case EXCP_SVC32: case EXCP_SVC64: svc_handler(td, frame); diff --git a/sys/arm64/include/armreg.h b/sys/arm64/include/armreg.h index d7e026bfccbb..c795db995ecf 100644 --- a/sys/arm64/include/armreg.h +++ b/sys/arm64/include/armreg.h @@ -387,6 +387,7 @@ #define EXCP_SVC64 0x15 /* SVC trap for AArch64 */ #define EXCP_HVC 0x16 /* HVC trap */ #define EXCP_MSR 0x18 /* MSR/MRS trap */ +#define EXCP_SVE 0x19 /* SVE trap */ #define EXCP_FPAC 0x1c /* Faulting PAC trap */ #define EXCP_INSN_ABORT_L 0x20 /* Instruction abort, from lower EL */ #define EXCP_INSN_ABORT 0x21 /* Instruction abort, from same EL */