Initialize empty structs explictly to build on MSVC

This commit is contained in:
mio 2021-12-30 00:51:07 +01:00
parent 03f9dd8b61
commit a72cbda6de
No known key found for this signature in database
GPG Key ID: DFF27E34A47CB873
5 changed files with 12 additions and 12 deletions

View File

@ -1132,7 +1132,7 @@ typedef struct DisasFormatInfo {
#define I(N, B, S) { B, S, 1, FLD_C_i##N, FLD_O_i##N }
#define L(N, B, S) { B, S, 0, FLD_C_l##N, FLD_O_l##N }
#define F0(N) { { } },
#define F0(N) { { 0 } },
#define F1(N, X1) { { X1 } },
#define F2(N, X1, X2) { { X1, X2 } },
#define F3(N, X1, X2, X3) { { X1, X2, X3 } },
@ -6675,7 +6675,7 @@ static DisasJumpType translate_one(CPUS390XState *env, DisasContext *s)
TCGContext *tcg_ctx = s->uc->tcg_ctx;
const DisasInsn *insn;
DisasJumpType ret = DISAS_NEXT;
DisasOps o = {};
DisasOps o = { 0 };
/* Search for the insn in the table. */
insn = extract_insn(env, s);

View File

@ -84,7 +84,7 @@ static void vop64_2(S390Vector *v1, const S390Vector *v2, CPUS390XState *env,
uintptr_t retaddr)
{
uint8_t vxc, vec_exc = 0;
S390Vector tmp = {};
S390Vector tmp = { 0 };
int i, old_mode;
old_mode = s390_swap_bfp_rounding_mode(env, erm);
@ -108,7 +108,7 @@ static void vop64_3(S390Vector *v1, const S390Vector *v2, const S390Vector *v3,
uintptr_t retaddr)
{
uint8_t vxc, vec_exc = 0;
S390Vector tmp = {};
S390Vector tmp = { 0 };
int i;
for (i = 0; i < 2; i++) {
@ -179,7 +179,7 @@ static int vfc64(S390Vector *v1, const S390Vector *v2, const S390Vector *v3,
CPUS390XState *env, bool s, vfc64_fn fn, uintptr_t retaddr)
{
uint8_t vxc, vec_exc = 0;
S390Vector tmp = {};
S390Vector tmp = { 0 };
int match = 0;
int i;
@ -414,7 +414,7 @@ static void vfll32(S390Vector *v1, const S390Vector *v2, CPUS390XState *env,
bool s, uintptr_t retaddr)
{
uint8_t vxc, vec_exc = 0;
S390Vector tmp = {};
S390Vector tmp = { 0 };
int i;
for (i = 0; i < 2; i++) {
@ -449,7 +449,7 @@ static void vflr64(S390Vector *v1, const S390Vector *v2, CPUS390XState *env,
bool s, bool XxC, uint8_t erm, uintptr_t retaddr)
{
uint8_t vxc, vec_exc = 0;
S390Vector tmp = {};
S390Vector tmp = { 0 };
int i, old_mode;
old_mode = s390_swap_bfp_rounding_mode(env, erm);
@ -510,7 +510,7 @@ static void vfma64(S390Vector *v1, const S390Vector *v2, const S390Vector *v3,
uintptr_t retaddr)
{
uint8_t vxc, vec_exc = 0;
S390Vector tmp = {};
S390Vector tmp = { 0 };
int i;
for (i = 0; i < 2; i++) {

View File

@ -30,7 +30,7 @@ void HELPER(vll)(CPUS390XState *env, void *v1, uint64_t addr, uint64_t bytes)
s390_vec_write_element64(v1, 0, t0);
s390_vec_write_element64(v1, 1, t1);
} else {
S390Vector tmp = {};
S390Vector tmp = { 0 };
int i;
for (i = 0; i < bytes; i++) {
@ -178,7 +178,7 @@ void HELPER(vstl)(CPUS390XState *env, const void *v1, uint64_t addr,
addr = wrap_address(env, addr + 8);
cpu_stq_data_ra(env, addr, s390_vec_read_element64(v1, 1), GETPC());
} else {
S390Vector tmp = {};
S390Vector tmp = { 0 };
int i;
for (i = 0; i < bytes; i++) {

View File

@ -186,7 +186,7 @@ DEF_GALOIS_MULTIPLY(32, 64)
static S390Vector galois_multiply64(uint64_t a, uint64_t b)
{
S390Vector res = {};
S390Vector res = { 0 };
S390Vector va = {
.doubleword[1] = a,
};

View File

@ -350,7 +350,7 @@ static int vstrc(void *v1, const void *v2, const void *v3, const void *v4,
uint64_t a0 = s390_vec_read_element64(v2, 0);
uint64_t a1 = s390_vec_read_element64(v2, 1);
int first_zero = 16, first_match = 16;
S390Vector rt_result = {};
S390Vector rt_result = { 0 };
uint64_t z0, z1;
int i, j;