X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=deps%2Flightning%2Finclude%2Flightning%2Fjit_riscv.h;h=652e42ec649b38354816b98e397e5de63ec870fc;hb=d75d83f79fd867214fe53d167a13d0ff2bf1e7d0;hp=bf59c5b9e6b9fcc5019b58165d8e9dc5b481421a;hpb=384af87540d751ef274e5956d58f4bbc153a34a9;p=pcsx_rearmed.git diff --git a/deps/lightning/include/lightning/jit_riscv.h b/deps/lightning/include/lightning/jit_riscv.h index bf59c5b9..652e42ec 100644 --- a/deps/lightning/include/lightning/jit_riscv.h +++ b/deps/lightning/include/lightning/jit_riscv.h @@ -144,4 +144,24 @@ typedef enum { #define JIT_NOREG _NOREG } jit_reg_t; +typedef struct { + /* generate special instructions for unaligned load/store? */ + /* + * For best performance, the effective address for all loads and stores + * should be naturally aligned for each data type (i.e., on a four-byte + * boundary for 32-bit accesses, and a two-byte boundary for 16-bit + * accesses). The base ISA supports misaligned accesses, but these might + * run extremely slowly depending on the implementation. Furthermore, + * naturally aligned loads and stores are guaranteed to execute atomically, + * whereas misaligned loads and stores might not, and hence require + * additional synchronization to ensure atomicity + */ + jit_uint32_t unaligned : 1; +} jit_cpu_t; + +/* + * Initialization + */ +extern jit_cpu_t jit_cpu; + #endif /* _jit_riscv_h */