From owner-freebsd-mips@FreeBSD.ORG Mon Jul 22 03:27:24 2013 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 9101249D for ; Mon, 22 Jul 2013 03:27:24 +0000 (UTC) (envelope-from juli@clockworksquid.com) Received: from mail-la0-f51.google.com (mail-la0-f51.google.com [209.85.215.51]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 17D341FDC for ; Mon, 22 Jul 2013 03:27:23 +0000 (UTC) Received: by mail-la0-f51.google.com with SMTP id ga9so3132782lab.10 for ; Sun, 21 Jul 2013 20:27:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:x-gm-message-state; bh=Muyk+qe3soN03L1IGivyZUzCujGytF71vlemjLMePI4=; b=VfKia065rULkOK6GhePmDGIkcQpNng2XaX0X2fxcBn9GXRGM9XOhGWWudrpRrc/8Zs 8NNvv29ah+FYVfywFAKwqIax1axthBRCbkN9SRCFzSXldqmHMeaBFIFMiANqzgZNlyr9 kWiMlZ3oE8lVM22MREQHZbHz3M3St6tJ5zIkW0JfE7St7uytasm8RWNSVJtnxmez0TT7 t0rubgH2ZVQuLgQdnd7STqiV1khKgcqW6/ASSisUwDxQRu4KKw+6/78LO6/hlfSxGTwR 5XVzBsZW46VGgC7PE4VdFQMIlAGrTKOwtg3LKuX2jCPLSWVnJxyegPa4JEDj2as8+hnv yiYQ== X-Received: by 10.152.2.201 with SMTP id 9mr11316386law.84.1374463136707; Sun, 21 Jul 2013 20:18:56 -0700 (PDT) MIME-Version: 1.0 Received: by 10.152.113.231 with HTTP; Sun, 21 Jul 2013 20:18:36 -0700 (PDT) In-Reply-To: <793CB840-40AF-487E-99A0-2C34FF17FD11@bsdimp.com> References: <6401792509903023722@unknownmsgid> <8C6BE511-2CCD-434F-BE72-43F350E8AA2C@bsdimp.com> <793CB840-40AF-487E-99A0-2C34FF17FD11@bsdimp.com> From: Juli Mallett Date: Sun, 21 Jul 2013 20:18:36 -0700 Message-ID: Subject: Re: Can we undo the octeon hack? To: Warner Losh Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQk3gp18w6yBOC/qq9bEl9ImyJQDTJ5fFLvdPirMuiDprZ3EeW9uHS0HxaJRQyzA2PB0Sc46 Cc: Warner Losh , "freebsd-mips@freebsd.org" X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jul 2013 03:27:24 -0000 On Sun, Jul 21, 2013 at 8:12 PM, Warner Losh wrote: > > On Jul 21, 2013, at 9:00 PM, Juli Mallett wrote: >> I know I shouldn't say this, but: How hard can it be? :P > > How hard do you want it to be? > >> In kern.pre.mk: >> >> CFLAGS_PARAM_INLINE_UNIT_GROWTH?=100 >> CFLAGS_PARAM_LARGE_FUNCTION_GROWTH?=1000 >> CFLAGS_PARAM_MAX_INLINE_INSNS_SINGLE?=/* XXX what is default? */ >> CFLAGS+= --param inline-unit-growth=${CFLAGS_PARAM_INLINE_UNIT_GROWTH} >> CFLAGS+= --param large-function-growth=${CFLAGS_PARAM_LARGE_FUNCTION_GROWTH} >> CFLAGS+= --param max-inline-insns-single=${CFLAGS_PARAM_MAX_INLINE_INSNS_SINGLE} >> >> And then in the Octeon config: >> >> makeoptions CFLAGS_PARAM_INLINE_UNIT_GROWTH=10000 >> makeoptions CFLAGS_PARAM_LARGE_FUNCTION_GROWTH=100000 >> makeoptions CFLAGS_PARAM_MAX_INLINE_INSNS_SINGLE=10000 >> >> Right? > > Other than being completely wrong, this looks good... :) > >> Come up with a better name scheme, win 1/20 of 1 US cent. (Not >> redeemable for cash.) >> >> Most users will never see it; only Octeon needs such behaviour because >> of how the Simple Executive is implemented. > > Except we'd need it in every octeon config file :( We have a lot of stuff we need in every Octeon config file already, I don't see this as making that worse. std.octeon or whatever it's called would be fine, too. I just don't care for the NetBSD-ish std.* system and don't make much use of it myself, but it seems reasonable to put it there, since one already exists. Oh, wait, that's misnamed "std.octeon1" so let's refuse to do anything about that, too? :P