]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Unaligned stores and stmw are broken in emulation code
authorTom Musta <tmusta@us.ibm.com>
Thu, 22 Aug 2013 14:25:28 +0000 (09:25 -0500)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 27 Aug 2013 04:36:08 +0000 (14:36 +1000)
commit4a810f40bcb3d22b099fe34569866aad17de1fb4
treef7dc643d8809b2701be9d7547ddb680c19f2fd02
parentbf39eb575b5cd640f18cedc0a3b0325bc55e688b
powerpc: Unaligned stores and stmw are broken in emulation code

The stmw instruction was incorrectly decoded as an update form instruction
and thus the RA register was being clobbered.

Also, the utility routine to write memory to unaligned addresses breaks the
operation into smaller aligned accesses but was incorrectly incrementing
the address by only one; it needs to increment the address by the size of
the smaller aligned chunk.

Signed-off-by: Tom Musta <tmusta@us.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/lib/sstep.c