diff options
author | Richard Henderson <rth@twiddle.net> | 2014-04-25 13:24:23 -0400 |
---|---|---|
committer | Richard Henderson <rth@twiddle.net> | 2014-05-12 10:06:58 -0700 |
commit | 5588ff29210666234bb046034595fd0d53be90ef (patch) | |
tree | e4571df7901e3866485acd64b2d36cffae200fb1 /tcg/ia64/tcg-target.h | |
parent | 8c081b18025407fd5fa7c0d25a69398594ea5b2c (diff) |
tcg-ia64: Define TCG_TARGET_INSN_UNIT_SIZE
Using a 16-byte aligned structure achieves best results, both for code
cleanliness and compiled code size. However, this means that we can't
use the trick of encoding the slot number into the low 2 bits.
Thankfully, we only ever use slot2, so make that explicit in the names
of the relocation functions, and drop the code for other slots.
Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'tcg/ia64/tcg-target.h')
-rw-r--r-- | tcg/ia64/tcg-target.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tcg/ia64/tcg-target.h b/tcg/ia64/tcg-target.h index d834beb323..3a59b50349 100644 --- a/tcg/ia64/tcg-target.h +++ b/tcg/ia64/tcg-target.h @@ -25,6 +25,12 @@ #ifndef TCG_TARGET_IA64 #define TCG_TARGET_IA64 1 +#define TCG_TARGET_INSN_UNIT_SIZE 16 +typedef struct { + uint64_t lo __attribute__((aligned(16))); + uint64_t hi; +} tcg_insn_unit; + /* We only map the first 64 registers */ #define TCG_TARGET_NB_REGS 64 typedef enum { |