aboutsummaryrefslogtreecommitdiff
path: root/target-tricore/cpu.h
diff options
context:
space:
mode:
authorEmilio G. Cota <cota@braap.org>2016-04-07 13:19:22 -0400
committerRichard Henderson <rth@twiddle.net>2016-05-12 14:06:40 -1000
commit89fee74a0f066dfd73830a7b5fa137e87888c870 (patch)
treec328b72c40688fa8467bda05f05b90f6d3c60c50 /target-tricore/cpu.h
parentf68419eee9a966f5a915314c43cda6778f976a77 (diff)
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 <laurent.desnogues@gmail.com> Suggested-by: Richard Henderson <rth@twiddle.net> Tested-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Reviewed-by: Laurent Desnogues <laurent.desnogues@gmail.com> Signed-off-by: Emilio G. Cota <cota@braap.org> Signed-off-by: Richard Henderson <rth@twiddle.net> Message-Id: <1460049562-23517-1-git-send-email-cota@braap.org>
Diffstat (limited to 'target-tricore/cpu.h')
-rw-r--r--target-tricore/cpu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-tricore/cpu.h b/target-tricore/cpu.h
index 90045a93d2..eaebdd28e6 100644
--- a/target-tricore/cpu.h
+++ b/target-tricore/cpu.h
@@ -377,7 +377,7 @@ void tricore_tcg_init(void);
int cpu_tricore_signal_handler(int host_signum, void *pinfo, void *puc);
static inline void cpu_get_tb_cpu_state(CPUTriCoreState *env, target_ulong *pc,
- target_ulong *cs_base, int *flags)
+ target_ulong *cs_base, uint32_t *flags)
{
*pc = env->PC;
*cs_base = 0;