Revision 38972938
b/hw/g364fb.c | ||
---|---|---|
396 | 396 |
|
397 | 397 |
static void g364fb_update_depth(G364State *s) |
398 | 398 |
{ |
399 |
const static int depths[8] = { 1, 2, 4, 8, 15, 16, 0 };
|
|
399 |
static const int depths[8] = { 1, 2, 4, 8, 15, 16, 0 };
|
|
400 | 400 |
s->depth = depths[(s->ctla & 0x00700000) >> 20]; |
401 | 401 |
} |
402 | 402 |
|
b/target-i386/kvm.c | ||
---|---|---|
790 | 790 |
#ifdef KVM_CAP_SET_GUEST_DEBUG |
791 | 791 |
int kvm_arch_insert_sw_breakpoint(CPUState *env, struct kvm_sw_breakpoint *bp) |
792 | 792 |
{ |
793 |
const static uint8_t int3 = 0xcc;
|
|
793 |
static const uint8_t int3 = 0xcc;
|
|
794 | 794 |
|
795 | 795 |
if (cpu_memory_rw_debug(env, bp->pc, (uint8_t *)&bp->saved_insn, 1, 0) || |
796 | 796 |
cpu_memory_rw_debug(env, bp->pc, (uint8_t *)&int3, 1, 1)) |
b/target-microblaze/translate.c | ||
---|---|---|
91 | 91 |
int singlestep_enabled; |
92 | 92 |
} DisasContext; |
93 | 93 |
|
94 |
const static char *regnames[] =
|
|
94 |
static const char *regnames[] =
|
|
95 | 95 |
{ |
96 | 96 |
"r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7", |
97 | 97 |
"r8", "r9", "r10", "r11", "r12", "r13", "r14", "r15", |
... | ... | |
99 | 99 |
"r24", "r25", "r26", "r27", "r28", "r29", "r30", "r31", |
100 | 100 |
}; |
101 | 101 |
|
102 |
const static char *special_regnames[] =
|
|
102 |
static const char *special_regnames[] =
|
|
103 | 103 |
{ |
104 | 104 |
"rpc", "rmsr", "sr2", "sr3", "sr4", "sr5", "sr6", "sr7", |
105 | 105 |
"sr8", "sr9", "sr10", "sr11", "sr12", "sr13", "sr14", "sr15", |
Also available in: Unified diff