]> git.proxmox.com Git - qemu.git/commitdiff
gcc wants 1st static and then const
authorJuan Quintela <quintela@redhat.com>
Tue, 22 Sep 2009 23:19:02 +0000 (01:19 +0200)
committerBlue Swirl <blauwirbel@gmail.com>
Fri, 25 Sep 2009 19:52:06 +0000 (19:52 +0000)
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
hw/g364fb.c
target-i386/kvm.c
target-microblaze/translate.c

index 88e304823ec6e5899088a158057cba33f3efa555..d1d2c12d6c393203a4a3e4cd9e3061f290bb130f 100644 (file)
@@ -396,7 +396,7 @@ static uint32_t g364fb_ctrl_readb(void *opaque, target_phys_addr_t addr)
 
 static void g364fb_update_depth(G364State *s)
 {
-    const static int depths[8] = { 1, 2, 4, 8, 15, 16, 0 };
+    static const int depths[8] = { 1, 2, 4, 8, 15, 16, 0 };
     s->depth = depths[(s->ctla & 0x00700000) >> 20];
 }
 
index cab9fccaec30d56fffaced41f36a973549a1e7fb..701099921bb721320f5f8031c7d7abcf3f73d4b1 100644 (file)
@@ -790,7 +790,7 @@ int kvm_arch_handle_exit(CPUState *env, struct kvm_run *run)
 #ifdef KVM_CAP_SET_GUEST_DEBUG
 int kvm_arch_insert_sw_breakpoint(CPUState *env, struct kvm_sw_breakpoint *bp)
 {
-    const static uint8_t int3 = 0xcc;
+    static const uint8_t int3 = 0xcc;
 
     if (cpu_memory_rw_debug(env, bp->pc, (uint8_t *)&bp->saved_insn, 1, 0) ||
         cpu_memory_rw_debug(env, bp->pc, (uint8_t *)&int3, 1, 1))
index dfeb8ae848c8f4e323a928c52fecc7c0be7f991d..e91ea39ddf0660f815c9bada22a75119bb4a4b85 100644 (file)
@@ -91,7 +91,7 @@ typedef struct DisasContext {
     int singlestep_enabled;
 } DisasContext;
 
-const static char *regnames[] =
+static const char *regnames[] =
 {
     "r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7",
     "r8", "r9", "r10", "r11", "r12", "r13", "r14", "r15",
@@ -99,7 +99,7 @@ const static char *regnames[] =
     "r24", "r25", "r26", "r27", "r28", "r29", "r30", "r31",
 };
 
-const static char *special_regnames[] =
+static const char *special_regnames[] =
 {
     "rpc", "rmsr", "sr2", "sr3", "sr4", "sr5", "sr6", "sr7",
     "sr8", "sr9", "sr10", "sr11", "sr12", "sr13", "sr14", "sr15",