Home
last modified time | relevance | path

Searched hist:d120cdbce68c3739f94f733bec376460fb9cbc14 (Results 1 – 2 of 2) sorted by relevance

/linux/arch/powerpc/include/asm/
H A Dsstep.hdiff d120cdbce68c3739f94f733bec376460fb9cbc14 Wed Aug 30 06:12:28 CEST 2017 Paul Mackerras <paulus@ozlabs.org> powerpc/64: Fix update forms of loads and stores to write 64-bit EA

When a 64-bit processor is executing in 32-bit mode, the update forms
of load and store instructions are required by the architecture to
write the full 64-bit effective address into the RA register, though
only the bottom 32 bits are used to address memory. Currently,
the instruction emulation code writes the truncated address to the
RA register. This fixes it by keeping the full 64-bit EA in the
instruction_op structure, truncating the address in emulate_step()
where it is used to address memory, rather than in the address
computations in analyse_instr().

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
/linux/arch/powerpc/lib/
H A Dsstep.cdiff d120cdbce68c3739f94f733bec376460fb9cbc14 Wed Aug 30 06:12:28 CEST 2017 Paul Mackerras <paulus@ozlabs.org> powerpc/64: Fix update forms of loads and stores to write 64-bit EA

When a 64-bit processor is executing in 32-bit mode, the update forms
of load and store instructions are required by the architecture to
write the full 64-bit effective address into the RA register, though
only the bottom 32 bits are used to address memory. Currently,
the instruction emulation code writes the truncated address to the
RA register. This fixes it by keeping the full 64-bit EA in the
instruction_op structure, truncating the address in emulate_step()
where it is used to address memory, rather than in the address
computations in analyse_instr().

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>