linux-mips
[Top] [All Lists]

Re: [PATCH 3/16] Kconfig update for lemote fulong mini-PC

To: tiansm@lemote.com
Subject: Re: [PATCH 3/16] Kconfig update for lemote fulong mini-PC
From: Ralf Baechle <ralf@linux-mips.org>
Date: Wed, 18 Apr 2007 13:06:20 +0100
Cc: linux-mips@linux-mips.org, Fuxin Zhang <zhangfx@lemote.com>
In-reply-to: <11766507662638-git-send-email-tiansm@lemote.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <11766507651736-git-send-email-tiansm@lemote.com> <11766507661317-git-send-email-tiansm@lemote.com> <11766507661726-git-send-email-tiansm@lemote.com> <11766507662638-git-send-email-tiansm@lemote.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.4.2.2i
On Sun, Apr 15, 2007 at 11:25:52PM +0800, tiansm@lemote.com wrote:

> @@ -1681,6 +1712,13 @@ config CPU_HAS_SMARTMIPS
>  config CPU_HAS_WB
>       bool
>  
> +config 64BIT_CONTEXT
> +     bool "Save 64bit integer registers" if CPU_LOONGSON2 && 32BIT
> +     help
> +       Loongson2 CPU is 64bit , when used in 32BIT mode, its integer 
> registers
> +       can still be accessed as 64bit, mainly for multimedia instructions. 
> We must have
> +       all 64bit save/restored to make sure those instructions to get 
> correct result.
> +

Is there anything in implementation of this option Loongson2-specific?
If not then I suggest we make this option loook like:

   bool "Save 64bit integer registers" if CPU_SUPPORTS_64BIT_KERNEL && 32BIT

Somebody else might have a use for it!

  Ralf

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