summaryrefslogtreecommitdiff
path: root/target-i386
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2009-09-23 01:19:02 +0200
committerBlue Swirl <blauwirbel@gmail.com>2009-09-25 19:52:06 +0000
commit793cc58730c4a743ee253447647a1e605c0ba4af (patch)
tree291a33fe391fc48a232490b3080690aeebe82a3d /target-i386
parentc8bd1a2da58466f19ab3a513586cf4054bd1d7b3 (diff)
downloadqemu-793cc58730c4a743ee253447647a1e605c0ba4af.tar.gz
qemu-793cc58730c4a743ee253447647a1e605c0ba4af.tar.bz2
qemu-793cc58730c4a743ee253447647a1e605c0ba4af.zip
gcc wants 1st static and then const
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'target-i386')
-rw-r--r--target-i386/kvm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-i386/kvm.c b/target-i386/kvm.c
index cab9fccaec..701099921b 100644
--- a/target-i386/kvm.c
+++ b/target-i386/kvm.c
@@ -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))