diff options
author | Stefan Weil <sw@weilnetz.de> | 2014-02-21 18:18:34 +0100 |
---|---|---|
committer | Richard Henderson <rth@twiddle.net> | 2014-04-18 16:57:36 -0700 |
commit | ad5171dbd419ffa9e10de766e1c3198f2ae62dfa (patch) | |
tree | a58a0decd90cca98bb1e65b3d0ff7c7a9bd75955 /tcg/tcg-be-ldst.h | |
parent | 2d03b49c3f225994c4b0b46146437d8c887d6774 (diff) | |
download | qemu-ad5171dbd419ffa9e10de766e1c3198f2ae62dfa.zip qemu-ad5171dbd419ffa9e10de766e1c3198f2ae62dfa.tar.gz qemu-ad5171dbd419ffa9e10de766e1c3198f2ae62dfa.tar.bz2 |
tcg: Fix warning (1 bit signed bitfield entry) and replace int by bool
Static code analyzers complain about signed bitfields with only a single
bit. is_ld is used as a boolean value, so make it bool.
ppc64 already used bool for the 2nd argument is_ld of the local function
add_qemu_ldst_label. Modify all other TCG targets to do follow this
example.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'tcg/tcg-be-ldst.h')
-rw-r--r-- | tcg/tcg-be-ldst.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tcg/tcg-be-ldst.h b/tcg/tcg-be-ldst.h index 284db0c..ad94c0c 100644 --- a/tcg/tcg-be-ldst.h +++ b/tcg/tcg-be-ldst.h @@ -24,7 +24,7 @@ #define TCG_MAX_QEMU_LDST 640 typedef struct TCGLabelQemuLdst { - int is_ld:1; /* qemu_ld: 1, qemu_st: 0 */ + bool is_ld:1; /* qemu_ld: true, qemu_st: false */ TCGMemOp opc:4; TCGReg addrlo_reg; /* reg index for low word of guest virtual addr */ TCGReg addrhi_reg; /* reg index for high word of guest virtual addr */ |