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=1b4f93d36983760df825d4cf7754466f36a7fedd;hpb=28d1bea2e828cd079593abc8c97ea6ff4fd7d4f4;p=pcsx_rearmed.git diff --git a/deps/lightning/include/lightning/jit_riscv.h b/deps/lightning/include/lightning/jit_riscv.h index 1b4f93d3..652e42ec 100644 --- a/deps/lightning/include/lightning/jit_riscv.h +++ b/deps/lightning/include/lightning/jit_riscv.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019 Free Software Foundation, Inc. + * Copyright (C) 2019-2023 Free Software Foundation, Inc. * * This file is part of GNU lightning. * @@ -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 */