From patchwork Fri Jun 5 11:41:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Vivier X-Patchwork-Id: 1304073 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=vivier.eu Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49dgjY21zsz9sSF for ; Fri, 5 Jun 2020 21:42:09 +1000 (AEST) Received: from localhost ([::1]:43566 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jhAjf-0002D9-0L for incoming@patchwork.ozlabs.org; Fri, 05 Jun 2020 07:42:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53836) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jhAj9-0002Bc-5o for qemu-devel@nongnu.org; Fri, 05 Jun 2020 07:41:35 -0400 Received: from mout.kundenserver.de ([212.227.126.187]:44293) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jhAj8-0005ez-At for qemu-devel@nongnu.org; Fri, 05 Jun 2020 07:41:34 -0400 Received: from localhost.localdomain ([82.252.135.106]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.167]) with ESMTPSA (Nemesis) id 1N7xml-1iugbN0S27-0154t8; Fri, 05 Jun 2020 13:41:26 +0200 From: Laurent Vivier To: qemu-devel@nongnu.org Subject: [PULL 01/19] linux-user, alpha: fix oldumount syscall Date: Fri, 5 Jun 2020 13:41:02 +0200 Message-Id: <20200605114120.1051236-2-laurent@vivier.eu> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200605114120.1051236-1-laurent@vivier.eu> References: <20200605114120.1051236-1-laurent@vivier.eu> MIME-Version: 1.0 X-Provags-ID: V03:K1:Vrjynv6bZQdNwwKZKnRDWL7rwm3uAImACqQyOeb7ZC//Rx175T2 9l2lCVIxjQh4LFN8LHf/FMHLNv+eCF+Xhd4onLukjyofdIXwR65evIqaGjvMa9Br3LiBN0A iE00IuBqITT/XFgcOFQ93w94hpA66XWKjtTCN60Of8xW3Q6pSCwUkFCTB54SoOg8sDnDykZ 3OfOIxn+9IaQhY2WCiOfQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:gGNxyUGKKRk=:hHoLrBcpJH8XM564QgqFeW fGygZ5sslnZ4dxRcCHNlWt1+O6oazvySR9SmjSYgah4PI2R3uW7r8bijxwyAIRcB4fq2NNTeL whe0+DAx++F+LS6BGhMEy50mNMIF0vQUm84UiZD9J/XJ2MnTZwx+g3NRnGAAXe8R0XreoDzC3 y8AsI7kSkEBqJyabhiGU9M/MJMPNSBJ+6tasTEWHg+6vAGddhpfneRVOZ0eyZVLwK9QjSVYuQ stt/+f1ejJ8Jpgpm/Gi/ESqnMcZhj3qi5or8ZAmzVku9yg1A/NM12IxFYECOvdf5gdoR+bdVZ l//e0eik7Ot1yhSYn8tBnyh1osFWSmIM3+P8QXe4cw4vwvW/zJuxO9k3WgOHp3SVCsTkEBXfi R/7OQrCKHi9I1S/2FSTyNA1x2QRYzdMvN0gzMBigrundDhN+9k8s6eVVpunRc5cF30CptYnPK /KzjAVMWc+EKEhUxIihQuXVGmh/ZQ5fckiIbJpLu/ysPg3aRjQY4cavm7NtRwqWr+CGZuYFmK yKRrvvXFFBP6l+w3pt4bTM0505bYWewIIp5sDZxWzowM0Xx+DBaI/cMMDwlWuzm4mT/O922ft l5aRAWo9jeYZ7bmeYx0QprFTemgMkKYgjm+JXQR2OS7kp79Xam0h0lsicH15wZgTUQ3XMo5r9 aEAfAGkgke4CDNGEmzDdmksX6lHwCbXXET7EWmgo4ylINQj/EgkV0XvoanQ9fXsBM+EAhKkH8 54mtoGHeEo2HsokbJ4x7fB0aHg3MoR/C4+OEWlrR7Vi/nZQXRNoLLVPRboPqwf1Vl8GAKxRy8 qHP02O6yv0vC5eWKhLoujccWXLOQnKSFPw2Og+093dIaNmjwQLTAHRsyzHllukWvESXd9s0 Received-SPF: none client-ip=212.227.126.187; envelope-from=laurent@vivier.eu; helo=mout.kundenserver.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/05 07:41:33 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action 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: Riku Voipio , Laurent Vivier Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" When we try to bootstrap debian/lenny for alpha, it fails because it cannot umount /.root directory: ... Setting up initscripts (2.86.ds1-61) ... umount: /.root: Function not implemented dpkg: error processing initscripts (--configure): subprocess post-installation script returned error exit status 1 dpkg: sysvinit: dependency problems, but configuring anyway as you request: sysvinit depends on initscripts; however: Package initscripts is not configured yet. This is because, when we switched from syscall_nr.h to syscall.tbl, the syscall #321 has been renamed from umount to oldumount and syscall.c has not been updated to manage the new name. oldumount has been introduced in linux 2.1.116pre1 by: 7d32756b2 ("Import 2.1.116pre1") ... * We now support a flag for forced unmount like the other 'big iron' * unixes. Our API is identical to OSF/1 to avoid making a mess of AMD ... Fixes: 6116aea994 ("linux-user, alpha: add syscall table generation support") Signed-off-by: Laurent Vivier Message-Id: <20200502194642.32823-1-laurent@vivier.eu> Signed-off-by: Laurent Vivier --- linux-user/syscall.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 05f03919ff07..e89b815ce983 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -8028,8 +8028,13 @@ static abi_long do_syscall1(void *cpu_env, int num, abi_long arg1, } } return ret; -#ifdef TARGET_NR_umount +#if defined(TARGET_NR_umount) || defined(TARGET_NR_oldumount) +#if defined(TARGET_NR_umount) case TARGET_NR_umount: +#endif +#if defined(TARGET_NR_oldumount) + case TARGET_NR_oldumount: +#endif if (!(p = lock_user_string(arg1))) return -TARGET_EFAULT; ret = get_errno(umount(p)); From patchwork Fri Jun 5 11:41:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Vivier X-Patchwork-Id: 1304074 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=vivier.eu Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49dgjZ5D7Nz9sSF for ; Fri, 5 Jun 2020 21:42:10 +1000 (AEST) Received: from localhost ([::1]:43640 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jhAjg-0002FU-Bi for incoming@patchwork.ozlabs.org; Fri, 05 Jun 2020 07:42:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53840) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jhAj9-0002CT-SZ for qemu-devel@nongnu.org; Fri, 05 Jun 2020 07:41:35 -0400 Received: from mout.kundenserver.de ([212.227.126.134]:53979) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jhAj9-0005f3-1J for qemu-devel@nongnu.org; Fri, 05 Jun 2020 07:41:35 -0400 Received: from localhost.localdomain ([82.252.135.106]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.167]) with ESMTPSA (Nemesis) id 1Md76B-1j7pm12Y4J-00a9wI; Fri, 05 Jun 2020 13:41:26 +0200 From: Laurent Vivier To: qemu-devel@nongnu.org Subject: [PULL 02/19] linux-user: return target error codes for socket() and prctl() Date: Fri, 5 Jun 2020 13:41:03 +0200 Message-Id: <20200605114120.1051236-3-laurent@vivier.eu> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200605114120.1051236-1-laurent@vivier.eu> References: <20200605114120.1051236-1-laurent@vivier.eu> MIME-Version: 1.0 X-Provags-ID: V03:K1:yd6XIaELBsx2mJxCyYJBS6LYBEOtFTzmsw8aLpEKsBJJvBen0cF bqyOCkKtGuBSm2W17n45c/reIH3z7of1vubvPAjs83Z8+Fh7FjraDP0dfWrqYMm9AssX1DC OpGJNX6S2zfHAoINTtBSDTMBXKP68RNtdGn5fGTCRjg4UmaT93LxO2/T8cOxYkWDlQBG6AX aQhaDqxhYf2OHgyic+e0w== X-UI-Out-Filterresults: notjunk:1;V03:K0:dDCu5qbq0l0=:TFrkawL/Nz3420iuWd8P3F mpwfFlAP6KPLQmz3ERW1H/iBYmMoWe7Db9eit+MqdLbi/Ji7fNUvF7aN82xEa681VYSt6DFTL TTVh8JlblOly6Tv+TG+ERIp5d6ajYQnvUDIY+bPzcBjxzFu6isKAH0aVxulMilFWARBbx9DrG lb4iAMFWlAEzq0O9E2s0IGrqoJrd+kcL0niNsSYlK0lIVB1FfE4UkAgDGv4vXSnmLjRf+D2z2 z+9UueT+ABeZ2cWjQxlH4dGNVw3s02BKjLklcV61J5Be52kL10ChYyvvdt60j+FwQaUmpvE30 CnjPTtMmfjnLJyy3+uli0hJCk8Ra2ovIyXP/bczY7BXHzjAIlW4Vz9MoqWzlh8K30v+/l2v4I UjJASO1PTm19dYgRcucReyg3nGZraVAqXVLUqarjRHsLyGb9IGmbBdlk3Ux4mOP+li/ix35xJ ABDBMLQ25vUFWNbRnfh0HmmB/r/2uu7UYr81OoG87UONb9FjDdrsWHrXoXB4fL64iWdXB4dtw 4IE2vAjAo34YM7HVNAdQWkCHJQrD5pSxEUPVjNpMZCo9TIfUHsnBWL8tW+m6BspRcpupqtEeU W/ge9gy9hNOkv04MT+h6/5czZmsDUFhGW96YidfNApt/e+v/JesPSzWCZp0Hr1PvwDgrZKwL1 KWHZ84/SXXtTTjRJbn7mYBkRJ/fW7gjo4RP7bL30mjynmvEKkXSmhPX2SpWPYqCHcMyfOqCBB 32Fc4Eo6Ax3DCjbJEPxOrsFlH9ZCpAIHg4ZAcVj/IM6Bmlvpc+g4Iy8W4718FpCw2QLWe551r 9pK00fqm4bmSn2IndbG2w4WuYB2mansXookdqjEMZsLu/2q24NVS4pB11qq5cWyTxPUh/U+ Received-SPF: none client-ip=212.227.126.134; envelope-from=laurent@vivier.eu; helo=mout.kundenserver.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/05 07:41:33 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action 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: Helge Deller , Riku Voipio , Laurent Vivier Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" From: Helge Deller Return target error codes instead of host error codes. Signed-off-by: Helge Deller Reviewed-by: Laurent Vivier Message-Id: <20200424220033.GA28140@ls3530.fritz.box> Signed-off-by: Laurent Vivier --- linux-user/syscall.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index e89b815ce983..fd5c4f1d73e6 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -2987,7 +2987,7 @@ static abi_long do_socket(int domain, int type, int protocol) #endif protocol == NETLINK_KOBJECT_UEVENT || protocol == NETLINK_AUDIT)) { - return -EPFNOSUPPORT; + return -TARGET_EPFNOSUPPORT; } if (domain == AF_PACKET || @@ -5856,7 +5856,7 @@ static abi_long do_get_thread_area(CPUX86State *env, abi_ulong ptr) abi_long do_arch_prctl(CPUX86State *env, int code, abi_ulong addr) { - return -ENOSYS; + return -TARGET_ENOSYS; } #else abi_long do_arch_prctl(CPUX86State *env, int code, abi_ulong addr) From patchwork Fri Jun 5 11:41:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Vivier X-Patchwork-Id: 1304072 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=vivier.eu Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49dgjT4dLwz9sT6 for ; Fri, 5 Jun 2020 21:42:03 +1000 (AEST) Received: from localhost ([::1]:43474 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jhAjY-0002AG-C9 for incoming@patchwork.ozlabs.org; Fri, 05 Jun 2020 07:42:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53828) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jhAj6-0002A5-At for qemu-devel@nongnu.org; Fri, 05 Jun 2020 07:41:32 -0400 Received: from mout.kundenserver.de ([212.227.126.130]:38477) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jhAj5-0005el-B4 for qemu-devel@nongnu.org; Fri, 05 Jun 2020 07:41:32 -0400 Received: from localhost.localdomain ([82.252.135.106]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MIbzB-1jmvLe0kpZ-00EdE4; Fri, 05 Jun 2020 13:41:27 +0200 From: Laurent Vivier To: qemu-devel@nongnu.org Subject: [PULL 03/19] linux-user: Add support for /proc/cpuinfo on hppa platform Date: Fri, 5 Jun 2020 13:41:04 +0200 Message-Id: <20200605114120.1051236-4-laurent@vivier.eu> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200605114120.1051236-1-laurent@vivier.eu> References: <20200605114120.1051236-1-laurent@vivier.eu> MIME-Version: 1.0 X-Provags-ID: V03:K1:Ktzu7gJSUVZNNv1Qs1OpSvAJ4zNi8z02hVt7F4Jc4dhN1rmHGdZ YVvTzQUYJFcIIjGC14EYvrx5G72GMSv+ZGbBZvNmEkKxLc6BytHZK1OwynbbWs/LR7xvRMY hXRTwMc295nO57mh4m4i29Q8JgQH6pG8g03aC5Mxo29c0GtYP4/ZxEA/CKl8IB2/FcQUgf9 UQjqwVILCXEXo5JY2n+Kg== X-UI-Out-Filterresults: notjunk:1;V03:K0:gEqkqLsGtoE=:expfnda4zky+58R/lDPl4m M1QLyF/Z7W41fMi3IXro730mu9mGTI7cRo3tkfIDHeIO58/TK0OBY+32b0cV9T9aRvPLrD7pi UnHxJqL6Zz9Mk1r5xQYo7ZiLF6T+Y2XzsPbvmTUv89e8EgUrn6phOSR7y/kjcPuobYzbrRtNr +vCbZC9s7eQxGJOhjkIMAyw08LkKn9ldbNfgtiFV0Pm3t3PmJHcHh62913MqSezkNGkCVHdyp U7TULXobSS+jPVa+ND47lq2V7sj/5b+dVvdYwIfV+Fjyf/Ir8boq/ikQnTt71zg3n/jzWwG+Y A/KEMylysSbn9a/SQCitsSMcS2x1It3F6Vwvz4+CWcic3UlTG9jQQlrYQWlNiAcnmA5D5uvK/ WV7fmsW4SKlQlcXrdaS6VWjP0iYH1t6h6A7zxoXh7HUSn+nRbCrQQqQE360vJ7zvruK/+YZ1E R0qntUIbv3pDF3nu/XjANYPwJXmRn1HyhUa0JsuUqGG6DuyjYxBBJUM4GEGpYt0tssn3CCZpk eDxJ1v3/P1fMKp+S5VbLeyk7rRq8Fc2lC1ux0uUR53iIC8V6K4ZGaqGnbTl4jW8M/Dz7kYVsM X9/7TqBlPX/8QuP1JlQstOWMZgKtnbrLnxA/R93T4VPlEEp0qZXpe1VEZAAGTxPMVu5/Pb86I 1eecFZr5DH5EcCW2i63S/6esK/GOS6aksWft1v2qKm9sjho5bYHM1/DF/V82jeTprk0L0Tlbo Wg1XDNQBTuO+LbY61J2He9EAQdNzlVRDPgmQgn6uM11aSpc+dZ3mEhN3kbGUvQHPiIfGbSF+9 SeZG0D+siYyBESoit0h8OmM+jFYOTKgz2vHbUkMoZ5zV+tEYKRVW2FRgv19ctebHS5HxVxd Received-SPF: none client-ip=212.227.126.130; envelope-from=laurent@vivier.eu; helo=mout.kundenserver.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/05 07:41:29 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action 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: Helge Deller , Riku Voipio , Richard Henderson , Laurent Vivier Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" From: Helge Deller Provide our own /proc/cpuinfo file for the hppa (parisc) platform. Signed-off-by: Helge Deller Reviewed-by: Richard Henderson Reviewed-by: Laurent Vivier Message-Id: <20200424210648.GA26715@ls3530.fritz.box> [lv: s/an/our/] Signed-off-by: Laurent Vivier --- linux-user/syscall.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index fd5c4f1d73e6..63c40c48e31f 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -7438,6 +7438,18 @@ static int open_cpuinfo(void *cpu_env, int fd) } #endif +#if defined(TARGET_HPPA) +static int open_cpuinfo(void *cpu_env, int fd) +{ + dprintf(fd, "cpu family\t: PA-RISC 1.1e\n"); + dprintf(fd, "cpu\t\t: PA7300LC (PCX-L2)\n"); + dprintf(fd, "capabilities\t: os32\n"); + dprintf(fd, "model\t\t: 9000/778/B160L\n"); + dprintf(fd, "model name\t: Merlin L2 160 QEMU (9000/778/B160L)\n"); + return 0; +} +#endif + #if defined(TARGET_M68K) static int open_hardware(void *cpu_env, int fd) { @@ -7462,7 +7474,7 @@ static int do_openat(void *cpu_env, int dirfd, const char *pathname, int flags, #if defined(HOST_WORDS_BIGENDIAN) != defined(TARGET_WORDS_BIGENDIAN) { "/proc/net/route", open_net_route, is_proc }, #endif -#if defined(TARGET_SPARC) +#if defined(TARGET_SPARC) || defined(TARGET_HPPA) { "/proc/cpuinfo", open_cpuinfo, is_proc }, #endif #if defined(TARGET_M68K)