[Top] [All Lists]

Re: [PATCH] mips: set ST0_MX flag for MDMX

To: "Maciej W. Rozycki" <>
Subject: Re: [PATCH] mips: set ST0_MX flag for MDMX
From: Matt Turner <>
Date: Wed, 9 May 2012 15:21:33 -0400
Cc: Ralf Baechle <>,
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=47BeUfd23lsw5Y9niuFQez5kpWqVF1PI0cPvRVhcLDY=; b=lPRdLOgezezUSmS201s10x9MaJOnEDFvc2DXFf1YFj5ZIWTYJPHK3AMHuS920suClQ rc1eFTAl/FVMVPjerhC/RySmChmsQs4sS0wnTFjAbvkkZ97x1Apw7Dc1aLhU+kFI3PY3 LUJ96AOVhwZgf4ivrz64lbNrvM3WLSYzP6nWhtzq1uG71UH2ZOF5Dlzd+5JLXm/nvyyA j+Tba2G5NfJLdPRr5JoC7PDbAxlrVgAWssneimyw6ll4FOxVmI8fWEhjix6QFGsP/QK1 YUFAfuiL2jpwVK13n3DBbml6iHdgjIDQLypr0TmKXL2UfGo05y9a3XSvBVaVRa5Ln5pL rs6w==
In-reply-to: <>
References: <> <>
On Wed, May 9, 2012 at 1:20 PM, Maciej W. Rozycki <> wrote:
>> As the comment in commit 3301edcb says, DSP and MDMX share the same
>> config flag bit.
>> Without this set, MDMX instructions cause Illegal instruction errors.
>  NAK, it's all pretty and nice, but I am afraid you're missing the point
> with your change.  The bit has its purpose, the MDMX accumulator has to be
> saved and restored -- just as the DSP or the FPU context -- between task
> switches and the bit provides for doing that lazily (of course you can do
> that eagerly instead if you like).

Okay. It looks like I also need to add save/restoring of the MDMX
accumulator to arch/mips/power/cpu.c and

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