Skip to contentSkip to conversation

Using lswi/stswi inside the kernel

DISCUSSION Frank van Maarseveen 3 participants 3 messages Jul 14, 2005

lore
Share & tools
lore
#0 lore raw

Are there any issues I should be aware of?

I think most SAVE_GPR* and REST_GPR* macros could be replaced by a single lswi/stswi instruction.

Signature · 1 line
Frank
#1 lore raw

Yes, not all PowerPC implementations actually implement this instructions. Also, on a number of them there is no performance improvement when using the instructions.

- kumar

Quoted 12 lines · Frank van Maarseveen

Are there any issues I should be aware of?

I think most SAVE_GPR* and REST_GPR* macros could be replaced by a single lswi/stswi instruction.

Signature · 5 lines
Frank
_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-dev
#2 lore raw
Quoted 1 line

Yes, not all PowerPC implementations actually implement this instructions. Also, on a number of them there is no performance improvement when using the instructions.

Read: severe performance degradation ;-)

Segher