Make CPULogItem tables const
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5397 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
		
							parent
							
								
									be7fb97f8a
								
							
						
					
					
						commit
						c7cd6a3742
					
				| 
						 | 
				
			
			@ -797,7 +797,7 @@ typedef struct CPULogItem {
 | 
			
		|||
    const char *help;
 | 
			
		||||
} CPULogItem;
 | 
			
		||||
 | 
			
		||||
extern CPULogItem cpu_log_items[];
 | 
			
		||||
extern const CPULogItem cpu_log_items[];
 | 
			
		||||
 | 
			
		||||
void cpu_set_log(int log_flags);
 | 
			
		||||
void cpu_set_log_filename(const char *filename);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										4
									
								
								exec.c
								
								
								
								
							
							
						
						
									
										4
									
								
								exec.c
								
								
								
								
							| 
						 | 
				
			
			@ -1511,7 +1511,7 @@ void cpu_reset_interrupt(CPUState *env, int mask)
 | 
			
		|||
    env->interrupt_request &= ~mask;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
CPULogItem cpu_log_items[] = {
 | 
			
		||||
const CPULogItem cpu_log_items[] = {
 | 
			
		||||
    { CPU_LOG_TB_OUT_ASM, "out_asm",
 | 
			
		||||
      "show generated host assembly code for each compiled TB" },
 | 
			
		||||
    { CPU_LOG_TB_IN_ASM, "in_asm",
 | 
			
		||||
| 
						 | 
				
			
			@ -1551,7 +1551,7 @@ static int cmp1(const char *s1, int n, const char *s2)
 | 
			
		|||
/* takes a comma separated list of log masks. Return 0 if error. */
 | 
			
		||||
int cpu_str_to_log_mask(const char *str)
 | 
			
		||||
{
 | 
			
		||||
    CPULogItem *item;
 | 
			
		||||
    const CPULogItem *item;
 | 
			
		||||
    int mask;
 | 
			
		||||
    const char *p, *p1;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2252,7 +2252,7 @@ int main(int argc, char **argv)
 | 
			
		|||
            break;
 | 
			
		||||
        } else if (!strcmp(r, "d")) {
 | 
			
		||||
            int mask;
 | 
			
		||||
            CPULogItem *item;
 | 
			
		||||
            const CPULogItem *item;
 | 
			
		||||
 | 
			
		||||
	    if (optind >= argc)
 | 
			
		||||
		break;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue