Skip to content

Commit 543b7fb

Browse files
committed
AVR: fix compilation on non-Linux platforms.
Signed-off-by: Glenn Baker <[email protected]>
1 parent 2d2f216 commit 543b7fb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

qemu/target/avr/decode-insn.c.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ typedef struct {
2323
} arg_decode_insn5;
2424

2525
typedef struct {
26+
int noarg_;
2627
} arg_decode_insn6;
2728

2829
typedef struct {

qemu/target/avr/helper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ bool avr_cpu_tlb_fill(CPUState *cs, vaddr address, int size,
105105
bool probe, uintptr_t retaddr)
106106
{
107107
int prot = 0;
108-
MemTxAttrs attrs = {};
108+
MemTxAttrs attrs = {0};
109109
uint32_t paddr;
110110

111111
address &= TARGET_PAGE_MASK;

0 commit comments

Comments
 (0)