From owner-freebsd-ppc@freebsd.org Mon Oct 5 04:14:50 2015 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9F7F8A10606 for ; Mon, 5 Oct 2015 04:14:50 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: from mail-ig0-x233.google.com (mail-ig0-x233.google.com [IPv6:2607:f8b0:4001:c05::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6D1141373 for ; Mon, 5 Oct 2015 04:14:50 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: by igbkq10 with SMTP id kq10so54415959igb.0 for ; Sun, 04 Oct 2015 21:14:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:from:to:content-type:content-transfer-encoding :mime-version:subject:date; bh=Q9Q/v3WeP1nS4qy3zc3C/iiNhU43XHgezphhg2XRlYM=; b=Lan1MWJQVAhBzZyEGnHAbbcOh8Wr7q+T+SOx43+y85GAPjPZmunxLIZ8aOwRsSGOMt GMEC+ewimUKeuLFn8+owj4mCf6d/CPvGcsn5R1hqFD6EhjSzeeQE7zFhFSQMPVD+es4A y24jVHsVEn8LlOl9fLsCQ29+iniueiRNhTVJR0lB7YdHqESMlgTVIQMJFDVppMuZ7e95 N4o3WvDNgLUbUHZXF2J7olvvSVl/xEP/cOMEhnHWjo6n1Fo13Q4JoSL2fX48bbQZQPJk DXsccio8UBMB9HMEWQJd/sBxLg3W7tNmE9/05cnZpu9KQS5X1DZg30v96hTb+4yywiJj rxmw== X-Received: by 10.50.61.243 with SMTP id t19mr6965528igr.22.1444018489649; Sun, 04 Oct 2015 21:14:49 -0700 (PDT) Received: from [172.17.163.32] (74-95-103-49-Minnesota.hfc.comcastbusiness.net. [74.95.103.49]) by smtp.gmail.com with ESMTPSA id o90sm9698602ioi.17.2015.10.04.21.14.48 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 04 Oct 2015 21:14:48 -0700 (PDT) Message-Id: From: Justin Hibbits To: freebsd-ppc@FreeBSD.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Subject: e500 SPE support Date: Sun, 4 Oct 2015 23:14:46 -0500 X-Mailer: Apple Mail (2.936) X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Oct 2015 04:14:50 -0000 I've been doing some work on the e500 Signal Processing Engine (SPE, sort of like Altivec, only weirder), but have some questions on implementation: * This is mutually exclusive to Altivec, of course, because it shares the GPRs, extending them to 64-bits, but only for SPE instructions. Should the implementation be mutually exclusive, as well? Meaning, is it better to have enable_spe()/save_spe() strewn throughout the code, like is done with Altivec and FPU, or is it better to name them *_vec(), and have a compile-time option of switching between Altivec and SPE? The userland ABI would be different as well, which brings the next question: * Do we want another target, like how Linux does it (powerpcspe)? Or have this as just a different build option in src.conf? Suggestions are welcome and wanted. - Justin