From nobody Mon Feb 9 08:28:10 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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 (zoho.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=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1562884452; cv=none; d=zoho.com; s=zohoarc; b=S8NN/QkedptVwiket4TuKbmiCl6hG1k0nZbO9YlFG7dUZFGCIHwTP46Z2cT+bhpdTIRwQroF3iUK/n7M7dNmYv7CoVuVApmrrd4NxvkHqz3R4eZCYYZqVcpyzNN08n8IepaxH/IaPKcAP1W7pf9rxEdRUz7oLQqc3+nc8wPqiog= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1562884452; 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:ARC-Authentication-Results; bh=dCnnbb8AWZepBe80f73sl6PvHUpiI5AToL5sD/uo3so=; b=MowgoEcX/KgSoKXgl8UEp9hzqDOBkFkE9gz8olUNNTX0kx1SrEPzaMnNWINIDlwn/UujiaFDBv+cmHJJPugOBPurY2PSASRxdIdQNCDb2mbBd+kunkmoTI6B6pEZTcSOkUAf/G+H3YBYHEN6ovRZ2BD52rqwfvKB81eHwnl5WZE= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.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 1562884452397948.0251943778243; Thu, 11 Jul 2019 15:34:12 -0700 (PDT) Received: from localhost ([::1]:45630 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hlhdi-0002yP-Qh for importer@patchew.org; Thu, 11 Jul 2019 18:34:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40405) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hlhdA-00016f-FR for qemu-devel@nongnu.org; Thu, 11 Jul 2019 18:33:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hlhd2-0003rX-2m for qemu-devel@nongnu.org; Thu, 11 Jul 2019 18:33:30 -0400 Received: from mail-yb1-xb44.google.com ([2607:f8b0:4864:20::b44]:41904) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hlhcy-0003fC-U8 for qemu-devel@nongnu.org; Thu, 11 Jul 2019 18:33:25 -0400 Received: by mail-yb1-xb44.google.com with SMTP id 13so3196970ybx.8 for ; Thu, 11 Jul 2019 15:33:18 -0700 (PDT) Received: from dionysus.attlocal.net (69-222-133-165.lightspeed.tukrga.sbcglobal.net. [69.222.133.165]) by smtp.gmail.com with ESMTPSA id z191sm1676728ywa.31.2019.07.11.15.33.17 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 11 Jul 2019 15:33:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=dCnnbb8AWZepBe80f73sl6PvHUpiI5AToL5sD/uo3so=; b=LBuBNeBP8jmrmvJyCvmZS4xYmE2cGEiieJvk/+jxwgDlDVIZENw+3jbgIBXOtD7CcV 7T02n1OhrGY11MAnHLkCQs0eYGkvKlK8GE/Cvr5GjsIVY0WRmTRdYqVQPd9UmJYc9lay Zz4u7DuoEFvnzei9NfXdPqgrZNLHQV3rZpOD70Viz9kNuye6/SbxYCLU5Ae7nlkU9Jyw VwjBmFxN7XWqqyvXyKF8Dxr37OtkcGLZrXEnp3hP5lEgxFKgM8liS9nVTV6Jtrnm3rwe EQVYIcTKVhic5f6YHWekg69jrdJDfzb29eLZgsFUaHvWTPDnqLq5Klt2GV9fLSXCtNjv 7uJQ== 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=dCnnbb8AWZepBe80f73sl6PvHUpiI5AToL5sD/uo3so=; b=oV4l86794k6CZ+zpTyrIs/PEQD5MveHyI+JIUlYvIZe72lrtC/5hqcD6yIKCPfthNr Grn12ttb/Fr0ZuU3L95XKhhsPKAle95ouIaUsyPh+id3mSr/yQJ4cTI2ED/JBm7Q8oI2 sa/fZIgH66DSt58U4nvBO1lZasdrdos7I+OZeAuEikSDAn4bnfsfsrhYlzmSEDKuETYw UutcQ0YeXQsXzCRgtxSSOitlU1jkmOGKYDioaCfB2fHsnF3O5SXULvRFW0/Hdd+ECQ8j 93vIDbCSXSx2o+tNWzpfNrCztCzUQEIKZyTGNZCe30j5IRtGiUsJrSuFfJO5to9CFxzc GY4Q== X-Gm-Message-State: APjAAAVXrmVqiwvdQHOe0a4fm8CjKPb/S/1VoDF7cSjcHYRj+jb6x18+ gFd6u9eaxHq5xRWUOSmnA9K7jbRS X-Google-Smtp-Source: APXvYqwK/oLEIgxMGK32pPybjEbxxHylGWyRORXlWfcYqJwExZ0k0nH0G+kMDmApCtqy/uDmwKxlGQ== X-Received: by 2002:a25:7083:: with SMTP id l125mr4158067ybc.449.1562884397940; Thu, 11 Jul 2019 15:33:17 -0700 (PDT) From: Jan Bobek To: qemu-devel@nongnu.org Date: Thu, 11 Jul 2019 18:32:50 -0400 Message-Id: <20190711223300.6061-9-jan.bobek@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190711223300.6061-1-jan.bobek@gmail.com> References: <20190711223300.6061-1-jan.bobek@gmail.com> 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::b44 Subject: [Qemu-devel] [RISU PATCH v3 08/18] risugen: add command-line flag --x86_64 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: Jan Bobek , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Richard Henderson 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" This flag instructs the x86 backend to emit 64-bit (rather than 32-bit) code. Signed-off-by: Jan Bobek Reviewed-by: Richard Henderson --- risugen | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/risugen b/risugen index 0c859aa..50920eb 100755 --- a/risugen +++ b/risugen @@ -10,6 +10,7 @@ # Peter Maydell (Linaro) - initial implementation # Claudio Fontana (Linaro) - initial aarch64 support # Jose Ricardo Ziviani (IBM) - initial ppc64 support and arch isolation +# Jan Bobek - initial x86 support ##########################################################################= ##### =20 # risugen -- generate a test binary file for use with risu @@ -309,6 +310,7 @@ Valid options: Useful to test before support for FP is available. --sve : enable sve floating point --be : generate instructions in Big-Endian byte order (ppc64 o= nly). + --x86_64 : generate 64-bit (rather than 32-bit) code. (x86 only) --help : print this message EOT } @@ -321,6 +323,7 @@ sub main() my $fp_enabled =3D 1; my $sve_enabled =3D 0; my $big_endian =3D 0; + my $is_x86_64 =3D 0; my ($infile, $outfile); =20 GetOptions( "help" =3D> sub { usage(); exit(0); }, @@ -338,6 +341,7 @@ sub main() "be" =3D> sub { $big_endian =3D 1; }, "no-fp" =3D> sub { $fp_enabled =3D 0; }, "sve" =3D> sub { $sve_enabled =3D 1; }, + "x86_64" =3D> sub { $is_x86_64 =3D 1; }, ) or return 1; # allow "--pattern re,re" and "--pattern re --pattern re" @pattern_re =3D split(/,/,join(',',@pattern_re)); @@ -371,7 +375,8 @@ sub main() 'keys' =3D> \@insn_keys, 'arch' =3D> $full_arch[0], 'subarch' =3D> $full_arch[1] || '', - 'bigendian' =3D> $big_endian + 'bigendian' =3D> $big_endian, + 'x86_64' =3D> $is_x86_64, ); =20 write_test_code(\%params); --=20 2.20.1