linux-mips
[Top] [All Lists]

Re: [PATCH] Enable AT_PLATFORM for Loongson 2F CPU

To: Robert Millan <rmh@gnu.org>
Subject: Re: [PATCH] Enable AT_PLATFORM for Loongson 2F CPU
From: Robert Millan <rmh@gnu.org>
Date: Tue, 16 Nov 2010 00:50:28 +0100
Cc: Ralf Baechle <ralf@linux-mips.org>, wu zhangjin <wuzhangjin@gmail.com>, David Daney <ddaney@caviumnetworks.com>, Aurelien Jarno <aurelien@aurel32.net>, linux-mips@linux-mips.org
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:date:from:subject:to :cc:references:in-reply-to:x-mailer:message-id:mime-version :content-type; bh=dEA7e5sH5ys0mV71RRyRLQ2cfgXuvWLrNN4jUOz9ZKc=; b=kD6YYWHGFDzEysTOxPqCxpHT04Sz/S7FP4Mi9yOhMGrV4iTYrBWAY6Q/GS/ir/ek1x sdi180ABz/2ObO5sVkJi08198k4VtSpLiFFQNlV104E22eRwzpZH8djE1l+8EyMHFNhq 5o4gDdl0988P8I/7TJSjrMCEv6+4ZN15B1xL0=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:subject:to:cc:references:in-reply-to:x-mailer :message-id:mime-version:content-type; b=wpaUVIoRkY7tbiDp4d9lQGCNCsNgkPN+IBZ2ndvUGFGZ3RI9x5OYCirYLc11HYLj45 P8gw0mjfGrTLUE5YQpx4p8Gl1t2tk8fNvFpuGZQHIPFqTuk3OTJvL5ekd3BM5zlWxmlU Q3Aj0cRMSY7LVo2oHG76PzkJfO54XIUUQVCwY=
In-reply-to: <1289486855.14828.0@thorin> (from rmh@gnu.org on Thu Nov 11 15:47:35 2010)
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20101109154055.GD10799@linux-mips.org> <1289486855.14828.0@thorin>
Sender: linux-mips-bounce@linux-mips.org
El 11/11/10 15:47:35, en/na Robert Millan va escriure:
> -             __cpu_name[cpu] = "ICT Loongson-2";
> +             switch (c->processor_id & PRID_REV_MASK) {
> +             case PRID_REV_LOONGSON2E:
> +                     __cpu_name[cpu] = "ICT Loongson-2E";

Actually, the V0.2 / V0.3 that follows in cpuinfo output
already indicates revision.  And I noticed that appending
the 'E' or 'F' breaks GCC's -march=native option (which
works by parsing /proc/cpuinfo).

Please use this patch instead.

Attachment: loongson2f.diff
Description: Text Data

<Prev in Thread] Current Thread [Next in Thread>