From nobody Tue Apr 25 20:23:40 2023 X-Original-To: dev-commits-src-main@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 4Q5YNr417Kz46g6j; Tue, 25 Apr 2023 20:23:40 +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 4Q5YNr3cP6z3F0Q; Tue, 25 Apr 2023 20:23:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682454220; 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=oXvrGWfLRVa1sgK/iiS2luU9ep4tdVvam/rw52OEmok=; b=HnMku+oq0xik48zwLHu3u+owpK42aY40kplw/mSntTJcOd8HB03VXbG1c/3/A5XChN6Q9S BWopW8RP/vdaRZailixvSz0waa+4xQa6ckJMz6yoZBUWW8aCBwwhFPI9qdt74YK0kt3wYB EiziIfRtlgfzwyyFIBeOkPucuebL/r3icF6dAqvtYn3bo5iY+B8mHQIrKdKFbAZ/O0i00E jpbgFEiqI1lui+GcreTxhxiESzJtIjwSpukoiN0PEha8L5NtOv+J2CA50FFSn8yZ9qZzes SExBS+uVuMYPUn1fR7P8yORkNflXHO25wTulCTke1fag03mVCXxfvE3X1vUEQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682454220; 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=oXvrGWfLRVa1sgK/iiS2luU9ep4tdVvam/rw52OEmok=; b=mY6s5bYfx+gXl1fu1eh3gqTkz88ong3N81QoJQlBAvU6tCDXe2CLy+Vz2eApL7rEhuME51 ZnHKvbKX7UmMMmWG2lGz+NZh+9ZQ0XZT12F4/dpKrXcycLsRO8X/R9jUB0Mlz9dSyLyHQm ATWVl/zGqgrcifBcX+c6shp49PaTt/QYnhOp0AilcRFiLlHVVevoEdmJT5ipZgqkRyGrog vHz/P2Pbo3pkYzn98dK3Z7MsbYbMhgPco1yNL68l+bAcD9yLEPCrQsCWQ8OaZhKzgvLmKx NH1x3SUQrEVsLg7zNwdpL52u5KkE8ukAoREak2C7cZfBdBGBRP92/1RE1v8a5Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1682454220; a=rsa-sha256; cv=none; b=FyIo7hhKI6Af9EZFi9Ix4CjKV3K0Krrtvz47JO/DCf67K5jRheSN3SBbIyRU+aAcgaaxiV pt5tKBAxR4KLxsikSYyDopxPe6G5+9dzbIqKirXHyxhKDFKC860V3iJaORJPblSn8XIoFV 0DcpMrRKMymk2zB4QoWoOmUGdL7ujXoLTAnwnFxsT2PUWXF3OpH+EMig6m+3TNfN/fW+/5 5GYjScK7Dc2JHUpE+P+1UoxqiS6pcElXvRd0c+fWyrA/0XhNj7y+92iABiwBJPAhyB/8md Qyfz85QhlKdwyQli8gbq2ZH7i+BhvAfdCjhDjQ/QLVMikVJTzHj1ldZ2T0au/w== 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 4Q5YNr2jYtz1Lq7; Tue, 25 Apr 2023 20:23:40 +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 33PKNeq5025573; Tue, 25 Apr 2023 20:23:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33PKNen7025572; Tue, 25 Apr 2023 20:23:40 GMT (envelope-from git) Date: Tue, 25 Apr 2023 20:23:40 GMT Message-Id: <202304252023.33PKNen7025572@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mitchell Horne Subject: git: 7edb7adf8c8b - main - arm64/disassem.c: Add support str/strb/strh instructions List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7edb7adf8c8b0615c6d845ca789d4f527f8b18a3 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=7edb7adf8c8b0615c6d845ca789d4f527f8b18a3 commit 7edb7adf8c8b0615c6d845ca789d4f527f8b18a3 Author: Mykola Hohsadze AuthorDate: 2023-04-18 15:51:15 +0000 Commit: Mitchell Horne CommitDate: 2023-04-25 20:23:15 +0000 arm64/disassem.c: Add support str/strb/strh instructions Added disassembly support for each type of str/strb/strh instruction encoding. Reviewed by: mhorne MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D39336 --- sys/arm64/arm64/disassem.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/sys/arm64/arm64/disassem.c b/sys/arm64/arm64/disassem.c index 90ae51c5740c..0f7b040e7b06 100644 --- a/sys/arm64/arm64/disassem.c +++ b/sys/arm64/arm64/disassem.c @@ -187,6 +187,24 @@ static struct arm64_insn arm64_i[] = { TYPE_02, 0 }, /* ldrsw register */ { "ldrsw", "10011000|IMM(19)|RT(5)", TYPE_03, OP_SIGN_EXT | OP_LITERAL | OP_MULT_4 }, /* ldr literal */ + { "str", "1|SF(1)|111000000|IMM(9)|OPTION(2)|RN(5)|RT(5)", + TYPE_02, OP_SIGN_EXT }, /* str immediate post/pre index */ + { "str", "1|SF(1)|11100100|IMM(12)|RN(5)|RT(5)", + TYPE_02, 0 }, /* str immediate unsigned */ + { "str", "1|SF(1)|111000001|RM(5)|OPTION(3)|SCALE(1)|10|RN(5)|RT(5)", + TYPE_02, 0 }, /* str register */ + { "strb", "00111000000|IMM(9)|OPTION(2)|RN(5)|RT(5)", + TYPE_02, OP_SIGN_EXT | OP_SF32 }, /* strb immediate post/pre index */ + { "strb", "0011100100|IMM(12)|RN(5)|RT(5)", + TYPE_02, OP_SF32 }, /* strb immediate unsigned */ + { "strb", "00111000001|RM(5)|OPTION(3)|SCALE(1)|10|RN(5)|RT(5)", + TYPE_02, OP_SF32 }, /* strb register */ + { "strh", "01111000000|IMM(9)|OPTION(2)|RN(5)|RT(5)", + TYPE_02, OP_SF32 | OP_SIGN_EXT }, /* strh immediate post/pre index */ + { "strh", "0111100100|IMM(12)|RN(5)|RT(5)", + TYPE_02, OP_SF32 }, /* immediate unsigned */ + { "strh", "01111000001|RM(5)|OPTION(3)|SCALE(1)|10|RN(5)|RT(5)", + TYPE_02, OP_SF32 }, /* strh register */ { NULL, NULL } };