Thread (80 messages) 80 messages, 7 authors, 2021-05-20

Re: [PATCH v8 11/30] powerpc: Use a datatype for instructions

From: Jordan Niethe <hidden>
Date: 2020-05-08 02:17:30

Hi mpe,
On Wed, May 6, 2020 at 1:45 PM Jordan Niethe [off-list ref] wrote:
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
s/a future ISA version will introduce/ISA v3.1 introduces/
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 endianness 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.

Signed-off-by: Jordan Niethe <redacted>
---
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help