Skip to content

Commit 9ffb57b

Browse files
committed
Initialise gpio_model. Fixes issues seen on Mac
1 parent 57aa10d commit 9ffb57b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

common/sim/models.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,13 @@ struct gpio_model {
9090
void step(unsigned timestamp);
9191

9292
private:
93-
uint32_t input_data;
93+
uint32_t input_data = 0;
9494
const value<width> &o;
9595
const value<width> &oe;
9696
value<width> &i;
9797
struct {
98-
uint32_t o_last, oe_last;
98+
uint32_t o_last = 0;
99+
uint32_t oe_last = 0;
99100
} s;
100101
};
101102

0 commit comments

Comments
 (0)