diff options
author | Emilio G. Cota | 2016-04-07 19:19:22 +0200 |
---|---|---|
committer | Richard Henderson | 2016-05-13 02:06:40 +0200 |
commit | 89fee74a0f066dfd73830a7b5fa137e87888c870 (patch) | |
tree | c328b72c40688fa8467bda05f05b90f6d3c60c50 /target-sh4 | |
parent | Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging (diff) | |
download | qemu-89fee74a0f066dfd73830a7b5fa137e87888c870.tar.gz qemu-89fee74a0f066dfd73830a7b5fa137e87888c870.tar.xz qemu-89fee74a0f066dfd73830a7b5fa137e87888c870.zip |
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-sh4')
-rw-r--r-- | target-sh4/cpu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-sh4/cpu.h b/target-sh4/cpu.h index 3b23e967bb..10c0191795 100644 --- a/target-sh4/cpu.h +++ b/target-sh4/cpu.h @@ -347,7 +347,7 @@ static inline void cpu_write_sr(CPUSH4State *env, target_ulong sr) } static inline void cpu_get_tb_cpu_state(CPUSH4State *env, target_ulong *pc, - target_ulong *cs_base, int *flags) + target_ulong *cs_base, uint32_t *flags) { *pc = env->pc; *cs_base = 0; |