On Mon, Mar 23, 2020 at 5:27 PM Nicholas Piggin <npig...@gmail.com> wrote: > > Jordan Niethe's on March 20, 2020 3:17 pm: > > Currently unsigned ints are used to represent instructions on powerpc. > > This has worked well as instructions have always been 4 byte words. > > However, a future ISA version will introduce some changes to > > instructions that mean this scheme will no longer work as well. This > > change is Prefixed Instructions. A prefixed instruction is made up of a > > word prefix followed by a word suffix to make an 8 byte double word > > instruction. No matter the endianess of the system the prefix always > > comes first. Prefixed instructions are only planned for powerpc64. > > > > Introduce a ppc_inst type to represent both prefixed and word > > instructions on powerpc64 while keeping it possible to exclusively have > > word instructions on powerpc32, A latter patch will expand the type to > > include prefixed instructions but for now just typedef it to a u32. > > > > Later patches will introduce helper functions and macros for > > manipulating the instructions so that powerpc64 and powerpc32 might > > maintain separate type definitions. > > ppc_inst_t I would slightly prefer for a typedef like this. Are _t types meant to be reserved? > > Reviewed-by: Nicholas Piggin <npig...@gmail.com> > > > > > Signed-off-by: Jordan Niethe <jniet...@gmail.com>
- [PATCH v4 01/16] powerpc/xmon: Remove store_inst() for pa... Jordan Niethe
- Re: [PATCH v4 01/16] powerpc/xmon: Remove store_inst... Nicholas Piggin
- [PATCH v4 02/16] xmon: Move out-of-line instructions to t... Jordan Niethe
- Re: [PATCH v4 02/16] xmon: Move out-of-line instruct... Balamuruhan S
- Re: [PATCH v4 02/16] xmon: Move out-of-line inst... Jordan Niethe
- Re: [PATCH v4 02/16] xmon: Move out-of-line instruct... Balamuruhan S
- Re: [PATCH v4 02/16] xmon: Move out-of-line instruct... Nicholas Piggin
- [PATCH v4 03/16] powerpc: Use a datatype for instructions Jordan Niethe
- Re: [PATCH v4 03/16] powerpc: Use a datatype for ins... Balamuruhan S
- Re: [PATCH v4 03/16] powerpc: Use a datatype for ins... Nicholas Piggin
- Re: [PATCH v4 03/16] powerpc: Use a datatype for... Jordan Niethe
- Re: [PATCH v4 03/16] powerpc: Use a datatype... Nicholas Piggin
- Re: [PATCH v4 03/16] powerpc: Use a data... Michael Ellerman
- Re: [PATCH v4 03/16] powerpc: Use a... Jordan Niethe
- Re: [PATCH v4 03/16] powerpc: Use a datatype for ins... Balamuruhan S
- Re: [PATCH v4 03/16] powerpc: Use a datatype for... Jordan Niethe
- Re: [PATCH v4 03/16] powerpc: Use a datatype... Alistair Popple
- Re: [PATCH v4 03/16] powerpc: Use a data... Jordan Niethe
- [PATCH v4 04/16] powerpc: Use a macro for creating instru... Jordan Niethe
- Re: [PATCH v4 04/16] powerpc: Use a macro for creati... Nicholas Piggin
- Re: [PATCH v4 04/16] powerpc: Use a macro for cr... Jordan Niethe