From nobody Tue Feb 10 00:22:47 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of _spf.google.com designates 209.85.128.65 as permitted sender) client-ip=209.85.128.65; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wm1-f65.google.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.128.65 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1605802650; cv=none; d=zohomail.com; s=zohoarc; b=S0IO/zJI+AyhsWJ6g6AsIN1K0YwPuurrqohM1U6ec4xDzyzqsSysxQRJj3LMfRR9HqfHMXjSEGBmBiH0Hcnap2gbbV4ll+lG79S4LSXH13V/XZ0kSmBeoLjHJHJAqQ/4bTaliW/s7X80jy84fxY9wqKm4+6Evy9U/wpa8sTdNbo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1605802650; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Sender:Subject:To; bh=yVxKoMCNOb0M91+IB4bEHuCMrgq5vsUnaIKYxB1d630=; b=esIbzlBwNApyfmLxwB57Xu2oGxYoSORDgtuRMZLhNZx4pdPjSFS+gjyqgrtCCqcLz6rhx/JRuBKW/e1M8ORTuqoKNs986cGMMWEEHsnDmg5U7wxfG/Ac5lW/yEIXQbeK5hGLJaELn7mY5ttRk8/4oRDdMl0Af2HkS99FMFLLfUw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.128.65 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) by mx.zohomail.com with SMTPS id 1605802650035771.9595638057584; Thu, 19 Nov 2020 08:17:30 -0800 (PST) Received: by mail-wm1-f65.google.com with SMTP id h21so7264479wmb.2 for ; Thu, 19 Nov 2020 08:17:29 -0800 (PST) Return-Path: Return-Path: Received: from x1w.redhat.com (234.red-83-42-66.dynamicip.rima-tde.net. [83.42.66.234]) by smtp.gmail.com with ESMTPSA id t7sm323418wrp.26.2020.11.19.08.17.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Nov 2020 08:17:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=yVxKoMCNOb0M91+IB4bEHuCMrgq5vsUnaIKYxB1d630=; b=dDwV2HOOETBDkUsCMTNHCyuyyqzdt3cOrYoC7qLG+IxqEmTiqd8zVzLhTe/ge0DNg0 YQs/xgU/vxsBu7TBXEQgdUpwbb+PY+Xor+Xqpb7ZRmlt8SXneHMUHroxQcGetjImCCpE Lpqk7iwzAuaPVX/XnBvx6im9L8KQKCnAuNhR8b2/Ob7dHWblsLK81tfFJDSjaDUMOKww E8oMkNLWKwC7aQshAPNK7jkeNizEuCX9lNK+E4tCLZeATOtnDucMXHWeIHFfUCQKElbU YaTRpNBAul1nMGaynZm/9DJ//4k5NS8A2ViH2EHooRzO27Cr8iM+z6Ta91cRsHIDOQ3+ SgcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=yVxKoMCNOb0M91+IB4bEHuCMrgq5vsUnaIKYxB1d630=; b=bZcZmFCsETRY6hmpww6DnwTcGw+hO9S41luxmzzsLtIYPA1rrz/mI8K4opEXRZHKeF NWyMXsrJH9CUoDHc9sjKZUOpZBsYEid70CJl9xA6YWZtqI3SGku4JQQqPvL6N95H+x56 woyZl9aMf720O7UVgRESUOFqSIHGzqbCAnS9rTE9KOMuPimfSzF/Aocra7zVBzzCnbA0 oIlzmz/Z2CdWKAChaTnX81nACfzfZn4ptH0pdqikHyrBWCH0rXlRBKPmfFJa0I2HwhJq ZTg0sZKF+HTvlKWt3cQ0MW1qsT8XuTTt/Ojk892sfTY5e/OInmTvWNWDbo7Njj2JO4Vw 4c3A== X-Gm-Message-State: AOAM532V5GgzlJ2nyzQjMn0nRL+62oe+yABdgRzod9991IC3Jf3Z+ACo UvJYSRj8kdGCQdsyrL5IqtU= X-Google-Smtp-Source: ABdhPJyQMKDqqtDvaS0yImovipER8E5lurtCERQLOi6XOKGhEV1J8r7wbuzJOFN+OGB+9K+1aY9j7g== X-Received: by 2002:a1c:56c4:: with SMTP id k187mr5368084wmb.92.1605802648205; Thu, 19 Nov 2020 08:17:28 -0800 (PST) Sender: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Aurelien Jarno , Laurent Vivier , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Richard Henderson , Richard Henderson , Fredrik Noring , "Maciej W . Rozycki" , =?UTF-8?q?J=C3=BCrgen=20Urban?= , Mathieu Malaterre , James Cowgill , YunQiang Su , David Daney Subject: [PATCH 3/4] default-configs: Support o32 ABI with 64-bit MIPS CPUs Date: Thu, 19 Nov 2020 17:17:09 +0100 Message-Id: <20201119161710.1985083-4-f4bug@amsat.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201119161710.1985083-1-f4bug@amsat.org> References: <20201119161710.1985083-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) MIPS o32 ABI on 64-bit CPUs looks like a ILP32-on-64bit data model, allowing 64-bit arithmetic and data movement instructions. This is the default ABI used by the "Sony Linux Toolkit for Playstation 2". As we don't know big-endian uses, we only introduce the little-endian variant. Inspired-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- Cc: Fredrik Noring Cc: Maciej W. Rozycki Cc: J=C3=BCrgen Urban Cc from https://lists.debian.org/debian-mips/2015/05/msg00014.html: Cc: Mathieu Malaterre Cc: James Cowgill Cc: YunQiang Su Cc: David Daney --- docs/user/main.rst | 3 +++ default-configs/targets/mips64o32el-linux-user.mak | 7 +++++++ 2 files changed, 10 insertions(+) create mode 100644 default-configs/targets/mips64o32el-linux-user.mak diff --git a/docs/user/main.rst b/docs/user/main.rst index 8dfe232a3af..2cef1320ff3 100644 --- a/docs/user/main.rst +++ b/docs/user/main.rst @@ -211,6 +211,9 @@ Other binaries =20 * ``qemu-mipsel`` executes 32-bit little endian MIPS binaries (MIPS O32= ABI). =20 + * ``qemu-mips64o32el`` executes 64-bit little endian MIPS binaries (MIP= S O32 + ABI). + * ``qemu-mips64`` executes 64-bit big endian MIPS binaries (MIPS N64 AB= I). =20 * ``qemu-mips64el`` executes 64-bit little endian MIPS binaries (MIPS N= 64 diff --git a/default-configs/targets/mips64o32el-linux-user.mak b/default-c= onfigs/targets/mips64o32el-linux-user.mak new file mode 100644 index 00000000000..ecd57ff949f --- /dev/null +++ b/default-configs/targets/mips64o32el-linux-user.mak @@ -0,0 +1,7 @@ +TARGET_ARCH=3Dmips64 +TARGET_BASE_ARCH=3Dmips +TARGET_ABI_MIPSO32=3Dy +TARGET_ABI32=3Dy +TARGET_SYSTBL_ABI=3Do32 +TARGET_SYSTBL=3D../mips/syscall_o32.tbl +TARGET_ALIGNED_ONLY=3Dy --=20 2.26.2