From 462a8bc6468912b79629f20f18798558342ce315 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Thu, 23 Jun 2011 17:53:48 +0200 Subject: arm: Add const attribute to some arm_boot_info pointers Parameter 'info' is const, so add the missing attribute. v2: Add 'const' to the local variable info in do_cpu_reset() and to the boot_info field in CPUARMState (suggested by Peter Maydell). Cc: Andrzej Zaborowski Cc: Peter Maydell Signed-off-by: Stefan Weil Signed-off-by: Andrzej Zaborowski --- target-arm/cpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'target-arm') diff --git a/target-arm/cpu.h b/target-arm/cpu.h index 116131eef8..1022a03753 100644 --- a/target-arm/cpu.h +++ b/target-arm/cpu.h @@ -221,7 +221,7 @@ typedef struct CPUARMState { void *opaque; } cp[15]; void *nvic; - struct arm_boot_info *boot_info; + const struct arm_boot_info *boot_info; } CPUARMState; CPUARMState *cpu_arm_init(const char *cpu_model); -- cgit v1.2.3