Skip to content

Commit

Permalink
tcg: Define MO_TL
Browse files Browse the repository at this point in the history
This will also come in handy later for "less than" comparisons.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <03ba02fd-fade-4409-be16-2f81a5690b4c@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
  • Loading branch information
bonzini authored and rth7680 committed Oct 22, 2023
1 parent f1c2953 commit c048b68
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/exec/target_long.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,14 @@ typedef uint32_t target_ulong;
#define TARGET_FMT_lx "%08x"
#define TARGET_FMT_ld "%d"
#define TARGET_FMT_lu "%u"
#define MO_TL MO_32
#elif TARGET_LONG_SIZE == 8
typedef int64_t target_long;
typedef uint64_t target_ulong;
#define TARGET_FMT_lx "%016" PRIx64
#define TARGET_FMT_ld "%" PRId64
#define TARGET_FMT_lu "%" PRIu64
#define MO_TL MO_64
#else
#error TARGET_LONG_SIZE undefined
#endif
Expand Down

0 comments on commit c048b68

Please sign in to comment.