[Pdbg] [PATCH v2 5/7] libpdbg: use MTMSRD opcode rather than MTMSR

Alistair Popple alistair at popple.id.au
Tue Mar 26 12:24:57 AEDT 2019


According to the documentation this won't work as the L=0 form of MTMSRD 
requires predecode bits in SCOM RAM_CTRL to be set on P9. The L=1 form would 
work the same as it does not require any special predecode bits to be set.

- Alistair

On Tuesday, 12 March 2019 11:49:18 AM AEDT Nicholas Piggin wrote:
> XXX: have to ensure this still does the right thing on P9
> ---
>  libpdbg/operations.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libpdbg/operations.h b/libpdbg/operations.h
> index 85fc117..867f997 100644
> --- a/libpdbg/operations.h
> +++ b/libpdbg/operations.h
> @@ -59,7 +59,7 @@
>  #define MTNIA_OPCODE 0x00000002UL
>  #define MFNIA_OPCODE 0x00000004UL
>  #define MFMSR_OPCODE 0x7c0000a6UL
> -#define MTMSR_OPCODE 0x7c000124UL
> +#define MTMSR_OPCODE 0x7c000164UL
>  #define MFSPR_OPCODE 0x7c0002a6UL
>  #define MTSPR_OPCODE 0x7c0003a6UL
>  #define MFOCRF_OPCODE 0x7c100026UL




More information about the Pdbg mailing list