Re: [PATCH 1/2] MIPS: memset.S: EVA & fault support for small_memset

From: Maciej W. Rozycki
Date: Mon May 14 2018 - 19:11:28 EST


On Mon, 16 Apr 2018, James Hogan wrote:

> > @@ -260,6 +260,11 @@
> > jr ra
> > andi v1, a2, STORMASK
>
> This patch looks good, well spotted!
>
> But whats that v1 write about? Any ideas? Seems to go back to the git
> epoch, and $3 isn't in the clobber lists when __bzero* is called.

You need to dive deeper, that is beyond the secret commit 66f0a432564b
("Add resource managment."), to find what's happened before the epoch. ;)

Anyway, there isn't anything special here, the thing has been here since
the inception of memset.S with commit 2e0f55e79c49 (no shortlog available
for that one). And it is clearly a bug, possibly just a leftover from a
WIP implementation or whatever.

And I can see Matt has already fixed that, thanks!

Maciej