Skip to content

Commit

Permalink
exec: Rename USUFFIX to LSUFFIX
Browse files Browse the repository at this point in the history
In a following patch, there will be confusion between multiple "unsigned"
suffixes; rename this one so as to imply "load".

Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Richard Henderson <rth@twiddle.net>
  • Loading branch information
rth7680 committed Sep 2, 2013
1 parent 5bcebc2 commit 701e3a5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions include/exec/softmmu_template.h
Expand Up @@ -28,19 +28,19 @@

#if DATA_SIZE == 8
#define SUFFIX q
#define USUFFIX q
#define LSUFFIX q
#define DATA_TYPE uint64_t
#elif DATA_SIZE == 4
#define SUFFIX l
#define USUFFIX l
#define LSUFFIX l
#define DATA_TYPE uint32_t
#elif DATA_SIZE == 2
#define SUFFIX w
#define USUFFIX uw
#define LSUFFIX uw
#define DATA_TYPE uint16_t
#elif DATA_SIZE == 1
#define SUFFIX b
#define USUFFIX ub
#define LSUFFIX ub
#define DATA_TYPE uint8_t
#else
#error unsupported data size
Expand Down Expand Up @@ -147,7 +147,7 @@ glue(glue(helper_ret_ld, SUFFIX), MMUSUFFIX)(CPUArchState *env,
#endif

haddr = addr + env->tlb_table[mmu_idx][index].addend;
return glue(glue(ld, USUFFIX), _raw)((uint8_t *)haddr);
return glue(glue(ld, LSUFFIX), _raw)((uint8_t *)haddr);
}

DATA_TYPE
Expand Down Expand Up @@ -264,6 +264,6 @@ glue(glue(helper_st, SUFFIX), MMUSUFFIX)(CPUArchState *env, target_ulong addr,
#undef SHIFT
#undef DATA_TYPE
#undef SUFFIX
#undef USUFFIX
#undef LSUFFIX
#undef DATA_SIZE
#undef ADDR_READ

0 comments on commit 701e3a5

Please sign in to comment.