powerpc: Use 32 bit loads and stores when operating on condition register values
The condition register (CR) is a 32 bit quantity so we should use 32 bit loads and stores. Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:

committed by
Benjamin Herrenschmidt

부모
65508689d4
커밋
bbe30b3b57
@@ -24,7 +24,7 @@
|
||||
mflr r0; \
|
||||
mfcr r12; \
|
||||
std r0,16(r1); \
|
||||
std r12,8(r1); \
|
||||
stw r12,8(r1); \
|
||||
std r1,PACAR1(r13); \
|
||||
li r0,0; \
|
||||
mfmsr r12; \
|
||||
@@ -53,7 +53,7 @@ _STATIC(opal_return)
|
||||
*/
|
||||
FIXUP_ENDIAN
|
||||
ld r2,PACATOC(r13);
|
||||
ld r4,8(r1);
|
||||
lwz r4,8(r1);
|
||||
ld r5,16(r1);
|
||||
ld r6,PACASAVEDMSR(r13);
|
||||
mtspr SPRN_SRR0,r5;
|
||||
|
Reference in New Issue
Block a user