From 89fee74a0f066dfd73830a7b5fa137e87888c870 Mon Sep 17 00:00:00 2001 From: "Emilio G. Cota" Date: Thu, 7 Apr 2016 13:19:22 -0400 Subject: tb: consistently use uint32_t for tb->flags We are inconsistent with the type of tb->flags: usage varies loosely between int and uint64_t. Settle to uint32_t everywhere, which is superior to both: at least one target (aarch64) uses the most significant bit in the u32, and uint64_t is wasteful. Compile-tested for all targets. Suggested-by: Laurent Desnogues Suggested-by: Richard Henderson Tested-by: Edgar E. Iglesias Reviewed-by: Edgar E. Iglesias Reviewed-by: Laurent Desnogues Signed-off-by: Emilio G. Cota Signed-off-by: Richard Henderson Message-Id: <1460049562-23517-1-git-send-email-cota@braap.org> --- target-s390x/cpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'target-s390x') diff --git a/target-s390x/cpu.h b/target-s390x/cpu.h index 6d97c089a4..07f76ad884 100644 --- a/target-s390x/cpu.h +++ b/target-s390x/cpu.h @@ -338,7 +338,7 @@ static inline uint64_t cpu_mmu_idx_to_asc(int mmu_idx) } static inline void cpu_get_tb_cpu_state(CPUS390XState* env, target_ulong *pc, - target_ulong *cs_base, int *flags) + target_ulong *cs_base, uint32_t *flags) { *pc = env->psw.addr; *cs_base = 0; -- cgit v1.2.3