diff --git a/hw/dma.c b/hw/dma.c index bbdecc5229e05011257f76340af696e764bd5215..00c6332b4fc35e4547a2f01bd6984bddaf80e27f 100644 --- a/hw/dma.c +++ b/hw/dma.c @@ -450,7 +450,7 @@ static int dma_phony_handler (void *opaque, int nchan, int dma_pos, int dma_len) static void dma_init2(struct dma_cont *d, int base, int dshift, int page_base, int pageh_base) { - const int page_port_list[] = { 0x1, 0x2, 0x3, 0x7 }; + static const int page_port_list[] = { 0x1, 0x2, 0x3, 0x7 }; int i; d->dshift = dshift; diff --git a/target-i386/translate.c b/target-i386/translate.c index f7313ea8e4921abf9ac993192227151ed1dd93ff..bfb2801d25af73fb9f855e773e90e9d9daacf3e5 100644 --- a/target-i386/translate.c +++ b/target-i386/translate.c @@ -5475,7 +5475,7 @@ static target_ulong disas_insn(DisasContext *s, target_ulong pc_start) case 0x18 ... 0x1b: { int op1, l1; - const static uint8_t fcmov_cc[8] = { + static const uint8_t fcmov_cc[8] = { (JCC_B << 1), (JCC_Z << 1), (JCC_BE << 1),