• Paul Mackerras's avatar
    powerpc/64: Fix update forms of loads and stores to write 64-bit EA · d120cdbc
    Paul Mackerras authored
    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: default avatarPaul Mackerras <paulus@ozlabs.org>
    Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
    d120cdbc
sstep.c 58.9 KB