summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-10-02 18:27:46 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-10-02 18:27:46 +0000
commit1932180bc82715d01c3d4e6d5d62e608f8f67eae (patch)
tree89a01b0606467939b343bae3199e079b3498ee7b
parent9f2ece924bea23b9c9aecb2553c09603b8233c49 (diff)
downloadqemu-1932180bc82715d01c3d4e6d5d62e608f8f67eae.tar.gz
qemu-1932180bc82715d01c3d4e6d5d62e608f8f67eae.tar.bz2
qemu-1932180bc82715d01c3d4e6d5d62e608f8f67eae.zip
Make CPULogItem tables const
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5397 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r--cpu-all.h2
-rw-r--r--exec.c4
-rw-r--r--linux-user/main.c2
-rw-r--r--vl.c2
4 files changed, 5 insertions, 5 deletions
diff --git a/cpu-all.h b/cpu-all.h
index 00c4c4d0e1..db84423dcf 100644
--- a/cpu-all.h
+++ b/cpu-all.h
@@ -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);
diff --git a/exec.c b/exec.c
index 8f250ac6cd..7328bbac46 100644
--- a/exec.c
+++ b/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;
diff --git a/linux-user/main.c b/linux-user/main.c
index c32cd75e77..8cfef669d5 100644
--- a/linux-user/main.c
+++ b/linux-user/main.c
@@ -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;
diff --git a/vl.c b/vl.c
index 122ab2f679..743e613e7a 100644
--- a/vl.c
+++ b/vl.c
@@ -8845,7 +8845,7 @@ int main(int argc, char **argv)
case QEMU_OPTION_d:
{
int mask;
- CPULogItem *item;
+ const CPULogItem *item;
mask = cpu_str_to_log_mask(optarg);
if (!mask) {